mirror of
https://github.com/open-webui/computer.git
synced 2026-11-25 06:47:38 -05:00
refac
This commit is contained in:
1 parent
0086c32745
commit
a27fbb80e5
5 files changed
+113
-3
No files matched your search
+2
-1
@@ -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]] = {}
|
||||
|
||||
Reference in new issue
Block a user