mirror of
https://github.com/open-webui/open-webui.git
synced 2025-10-10 12:52:49 +02:00
refac
This commit is contained in:
@@ -173,6 +173,11 @@ async def user_count(sid):
|
||||
await sio.emit("user-count", {"count": len(USER_POOL.items())})
|
||||
|
||||
|
||||
@sio.on("chat")
|
||||
async def chat(sid, data):
|
||||
print("chat", sid, SESSION_POOL[sid], data)
|
||||
|
||||
|
||||
@sio.event
|
||||
async def disconnect(sid):
|
||||
if sid in SESSION_POOL:
|
||||
|
Reference in New Issue
Block a user