Timothy Jaeryang Baek 4 months ago
parent
commit
cd367534b7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      backend/open_webui/socket/main.py

+ 1 - 0
backend/open_webui/socket/main.py

@@ -193,6 +193,7 @@ async def user_join(sid, data):
     # print(f"user {user.name}({user.id}) connected with session ID {sid}")
 
     await sio.emit("user-count", {"count": len(USER_POOL.items())})
+    return {"id": user.id, "name": user.name}
 
 
 @sio.on("join-channels")