Refine Engine configuration wiring

This commit is contained in:
2025-10-22 05:20:23 -06:00
parent 6a3785b82f
commit fbaca54be8
6 changed files with 84 additions and 28 deletions

View File

@@ -6,7 +6,7 @@ from typing import Optional
from flask import Flask
from ...config import EngineSettings
from ...config import SocketIOSettings
try: # pragma: no cover - import guard
from flask_socketio import SocketIO
@@ -14,7 +14,7 @@ except Exception: # pragma: no cover - optional dependency
SocketIO = None # type: ignore[assignment]
def create_socket_server(app: Flask, settings: EngineSettings) -> Optional[SocketIO]:
def create_socket_server(app: Flask, settings: SocketIOSettings) -> Optional[SocketIO]:
"""Create a Socket.IO server bound to *app* if dependencies are available."""
if SocketIO is None: