Flask-uWSGI-WebSocket · PyPI
pypi.org › project › Flask-uWSGI-WebSocketNov 07, 2018 · If you want to use Gevent, import flask_uwsgi_websocket.GeventWebSocket and configure uWSGI to use the gevent loop engine: $ uwsgi --master --http :8080 --http-websockets --gevent 100 --wsgi echo:app …or: app.run(debug=True, gevent=100) Note that you cannot use multiple threads with gevent loop engine. To enable asyncio instead:
Elegant WebSockets for your Flask apps
pythonawesome.com › elegant-websockets-for-yourSep 10, 2021 · The websocket interface that is passed into your routes is provided by gevent-websocket. The basic methods are fairly straightforward — send, receive, send_frame, and close. Release History. v0.2.1. Add support of Flask blueprints. v0.2.0. Add request context into the socket handler. Fallback to Flask logic if websocket environment is not ...