mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fix: websocket redis
This commit is contained in:
parent
16504b88f5
commit
8455396249
1 changed files with 2 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ async def connect(sid, environ, auth):
|
|||
if user:
|
||||
SESSION_POOL[sid] = user.id
|
||||
if user.id in USER_POOL:
|
||||
USER_POOL[user.id].append(sid)
|
||||
USER_POOL[user.id] = USER_POOL[user.id] + [sid]
|
||||
else:
|
||||
USER_POOL[user.id] = [sid]
|
||||
|
||||
|
|
@ -179,7 +179,7 @@ async def user_join(sid, data):
|
|||
|
||||
SESSION_POOL[sid] = user.id
|
||||
if user.id in USER_POOL:
|
||||
USER_POOL[user.id].append(sid)
|
||||
USER_POOL[user.id] = USER_POOL[user.id] + [sid]
|
||||
else:
|
||||
USER_POOL[user.id] = [sid]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue