This commit is contained in:
beabigegg
2025-09-23 08:27:58 +08:00
parent ed9250db1a
commit 0a89c19fc9
11 changed files with 230 additions and 38 deletions

View File

@@ -135,9 +135,9 @@ def create_app(config_name=None):
# 創建 Celery 實例
app.celery = make_celery(app)
# 初始化 WebSocket
from app.websocket import init_websocket
app.socketio = init_websocket(app)
# WebSocket 功能完全禁用
app.logger.info("🔌 [WebSocket] WebSocket 服務已禁用")
app.socketio = None
# 註冊 Root 路由(提供 SPA 與基本 API 資訊)
try: