Use eventlet to allow proper websocket connection

Threading only allows longpolling
This commit is contained in:
kermit 2020-09-14 15:56:55 +01:00
parent 94728263a8
commit 1a99f13e0f

View file

@ -61,7 +61,7 @@ if not path.isfile(path.join(gui_dir, 'index.html')):
sys.exit("WebUI not found, please download and add a WebUI")
server = CustomFlask(__name__, static_folder=gui_dir, template_folder=gui_dir, static_url_path="")
server.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1 # disable caching
socketio = SocketIO(server, async_mode='threading')
socketio = SocketIO(server)
server.wsgi_app = ProxyFix(server.wsgi_app, x_for=1, x_proto=1)
class SocketInterface(MessageInterface):