Compare commits

..

No commits in common. "c71b1092f2291c5d8efa20aee6fcaa428d65203e" and "e05e67785bf032c394e21da98204525bf1a3219c" have entirely different histories.

View File

@ -53,10 +53,7 @@ class Api(Flask):
self.register_error_handler(exc_class, self.handle_exception)
# 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")
self._socketio = SocketIO(self, cors_allowed_origins="*", path="/api/socket.io")
self._socketio.on_event("connect", self.on_connect)
self._socketio.on_event("disconnect", self.on_disconnect)