All, I've been using Flask-Socketio extension with PY2.7, but recently migrated to PY3. There's no Gevent support for PY3 (yet), which breaks Flask-Socketio (the flask-socketio author is also waiting for this, see current limitations).
Is there any alternative to implementing websockets on flask running under NGINX/uWSGI with PY3?
So far: I've come across this server/client implementation that uses PY3's asyncio with no gevent requirement, but it's not for flask. Any advice on how to embed this into the current flask server would also be great. More specifically the server implementation there looks like:
start_server = websockets.serve(hello, 'localhost', 8765)
asyncio.get_event_loop().run_until_complete(start_server)
asyncio.get_event_loop().run_forever()
Not sure how to embed this into the main flask server script, make it work with uWSGI (which also supports websocket, adding to my confusion), etc. Any advice here?