I have been following the example of miguelgrinberg here. It works fine when run it. I submitted to heroku and works fine too. However when I am trying to integrate with flask-script I get this error:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/flask_socketio/init.py", line 27, in call raise RuntimeError('You need to use a gevent-socketio server.') RuntimeError: You need to use a gevent-socketio server.
The way I am integrating is using this code:
from flask.ext.script import Manager, Server
from chat import app, socketio
manager = Manager(app)
@manager.command
def run():
socketio.run(app,
host='127.0.0.1',
port=5000)
if __name__ == '__main__':
manager.run()