This commit is contained in:
Timothy Jaeryang Baek committed 2026-06-14 09:11:15 +02:00
1 parent 0086c32745
commit a27fbb80e5
5 files changed
+113 -3

No files matched your search

+2 -1
View File
@@ -10,8 +10,9 @@ from __future__ import annotations
import socketio
from cptr.utils.config import check_access
from cptr.env import CORS_ALLOWED_ORIGINS
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins="*")
sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins=CORS_ALLOWED_ORIGINS)
# user_id → set of connected sids
_user_sids: dict[str, set[str]] = {}