The issue might be that without importing socketio in application.py, gunicorn can't find the Socket.IO server to handle the WebSocket upgrade.

This commit is contained in:
Beverly Nguyen
2025-05-23 15:55:50 -07:00
parent ec60818d8d
commit dcae1ca914

View File

@@ -4,7 +4,7 @@ from __future__ import print_function
from flask import Flask from flask import Flask
from werkzeug.serving import WSGIRequestHandler from werkzeug.serving import WSGIRequestHandler
from app import create_app from app import create_app, socketio
WSGIRequestHandler.version_string = lambda self: "SecureServer" WSGIRequestHandler.version_string = lambda self: "SecureServer"