socketIO fix

This commit is contained in:
2025-05-27 15:29:31 +02:00
parent 5bb37da909
commit c2c03efe9e
5 changed files with 48 additions and 18 deletions

View File

@@ -7,4 +7,11 @@ from flask_wtf.csrf import CSRFProtect
db = SQLAlchemy()
login_manager = LoginManager()
csrf = CSRFProtect()
socketio = SocketIO(cors_allowed_origins="*")
socketio = SocketIO(
cors_allowed_origins="*",
async_mode='threading',
logger=True,
engineio_logger=True,
ping_timeout=60,
ping_interval=25
)