From 16504b88f5cf726b042544829180f0a14e197dc1 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 19 Dec 2024 13:11:44 -0800 Subject: [PATCH] fix --- backend/open_webui/socket/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index 4bdcbabed..add952331 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -218,7 +218,9 @@ async def disconnect(sid): def get_event_emitter(request_info): async def __event_emitter__(event_data): user_id = request_info["user_id"] - session_ids = USER_POOL.get(user_id, []) + session_ids = list( + set(USER_POOL.get(user_id, []) + [request_info["session_id"]]) + ) for session_id in session_ids: await sio.emit(