Commit 5fa69481 authored by Ziirish's avatar Ziirish

support Flask-SocketIO 3.2.1+

parent 8a3f50ae
Pipeline #1587 passed with stages
in 5 minutes and 16 seconds
......@@ -11,8 +11,7 @@ from ..config import config
from flask_socketio import SocketIO
options = {}
if config.get('WS_ASYNC_MODE'):
options['async_mode'] = config.get('WS_ASYNC_MODE')
options['async_mode'] = config.get('WS_ASYNC_MODE', 'gevent')
# engineio_logger=config.get('WS_DEBUG', False),
socketio = SocketIO(
......
......@@ -245,7 +245,8 @@ def create_websocket(myapp, websocket_server=False, celery_worker=False,
socketio.init_app(
myapp,
message_queue=myapp.config.get('WS_MESSAGE_QUEUE'),
manage_session=myapp.config.get('WS_MANAGE_SESSION', False)
manage_session=myapp.config.get('WS_MANAGE_SESSION', False),
async_mode=myapp.config.get('WS_ASYNC_MODE', 'gevent')
)
myapp.config['WS_AVAILABLE'] = True
except ImportError:
......
......@@ -50,7 +50,7 @@ demo-bui:
restart: always
build: docker-burpui/
ports:
- 127.0.0.1:5005:8000
- 0.0.0.0:5005:8000
environment:
- SENTRY_DSN
- PIWIK_URL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment