mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2025-01-15 11:05:16 +00:00
Use eventlet to allow proper websocket connection
Threading only allows longpolling
This commit is contained in:
parent
94728263a8
commit
1a99f13e0f
|
@ -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")
|
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 = CustomFlask(__name__, static_folder=gui_dir, template_folder=gui_dir, static_url_path="")
|
||||||
server.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1 # disable caching
|
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)
|
server.wsgi_app = ProxyFix(server.wsgi_app, x_for=1, x_proto=1)
|
||||||
|
|
||||||
class SocketInterface(MessageInterface):
|
class SocketInterface(MessageInterface):
|
||||||
|
|
Loading…
Reference in a new issue