Fixed socketio slow emits

This commit is contained in:
RemixDev 2020-09-15 20:03:34 +02:00
parent 4e003c5698
commit eb61c6f355

View file

@ -71,6 +71,7 @@ class SocketInterface(MessageInterface):
socketio.emit(message, value) socketio.emit(message, value)
else: else:
socketio.emit(message) socketio.emit(message)
socketio.sleep(0)
socket_interface = SocketInterface() socket_interface = SocketInterface()
@ -131,7 +132,7 @@ def shutdown(interface=None):
def shutdown_handler(signalnum, frame): def shutdown_handler(signalnum, frame):
shutdown() shutdown()
@server.route('/') @server.route('/')
def landing(): def landing():
return render_template('index.html') return render_template('index.html')