1 2 3 4 5
from flask_socketio import SocketIO from app import app # socket.io wrapper to avoid circular imports (same as db.py) io = SocketIO(app, cors_allowed_origins="*")