mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-17 04:05:53 +08:00
refac
This commit is contained in:
parent
2e5c2bc4c2
commit
cd367534b7
@ -193,6 +193,7 @@ async def user_join(sid, data):
|
|||||||
# print(f"user {user.name}({user.id}) connected with session ID {sid}")
|
# print(f"user {user.name}({user.id}) connected with session ID {sid}")
|
||||||
|
|
||||||
await sio.emit("user-count", {"count": len(USER_POOL.items())})
|
await sio.emit("user-count", {"count": len(USER_POOL.items())})
|
||||||
|
return {"id": user.id, "name": user.name}
|
||||||
|
|
||||||
|
|
||||||
@sio.on("join-channels")
|
@sio.on("join-channels")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user