How to integrate flask and flask_sockets into a single app running under uwsgi How to integrate flask and flask_sockets into a single app running under uwsgi flask flask

How to integrate flask and flask_sockets into a single app running under uwsgi


If you upgrade to uWSGI 2.0 you get websockets support for free without the need of additional frameworks and with gevent compatibility. More important you get a really fast implementation (suitable for gaming):

http://uwsgi-docs.readthedocs.org/en/latest/WebSockets.html


Although @roberto's solution is likely viable, it's a little too soon from the last major release for me to push it out to production.

I just went back to using socket.io and node in the interim. As time passes, maybe his suggestion will be more viable for me.