From eb61c6f355f6680eb090baf8f91e41f8244a7203 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Tue, 15 Sep 2020 20:03:34 +0200 Subject: [PATCH] Fixed socketio slow emits --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 4fb70ce..46a07fe 100644 --- a/server.py +++ b/server.py @@ -71,6 +71,7 @@ class SocketInterface(MessageInterface): socketio.emit(message, value) else: socketio.emit(message) + socketio.sleep(0) socket_interface = SocketInterface() @@ -131,7 +132,7 @@ def shutdown(interface=None): def shutdown_handler(signalnum, frame): shutdown() - + @server.route('/') def landing(): return render_template('index.html')