websocket fix

This commit is contained in:
2025-05-27 15:37:05 +02:00
parent dcf8af5e39
commit b86c4b4363
3 changed files with 11 additions and 2 deletions

View File

@@ -52,4 +52,9 @@ init_admin()
# Start the application
echo "Starting application..."
exec gunicorn --worker-class sync -w 1 --bind 0.0.0.0:5000 app:app
exec python3 -c "
from app import create_app
from extensions import socketio
app = create_app()
socketio.run(app, host='0.0.0.0', port=5000, debug=False, use_reloader=False)
"

View File

@@ -13,5 +13,9 @@ socketio = SocketIO(
logger=True,
engineio_logger=True,
ping_timeout=60,
ping_interval=25
ping_interval=25,
always_connect=True,
transports=['websocket', 'polling'],
allow_upgrades=True,
max_http_buffer_size=1e8
)