support in master #299

Merged
edraft merged 7 commits from support into master 2023-04-10 13:15:32 +02:00
Showing only changes of commit a9d180fdf1 - Show all commits

View File

@ -54,9 +54,9 @@ class Api(Flask):
# websockets
# Added async_mode see link below
# https://stackoverflow.com/questions/39370848/flask-socket-io-sometimes-client-calls-freeze-the-server
# https://github.com/miguelgrinberg/Flask-SocketIO/discussions/1849
self._socketio = SocketIO(self, cors_allowed_origins="*", path="/api/socket.io", async_mode="threading")
# https://stackoverflow.com/questions/39370848/flask-socket-io-sometimes-client-calls-freeze-the-server
self._socketio = SocketIO(self, cors_allowed_origins="*", path="/api/socket.io", async_mode="eventlet")
self._socketio.on_event("connect", self.on_connect)
self._socketio.on_event("disconnect", self.on_disconnect)