Files
open-webui-custom/backend/open_webui
Adam Skalicky e72a7e4eca perf Optimize Socket Emits Using User Rooms (#18996)
* This PR optimizes socket delta event broadcasting by leveraging rooms. Instead of iterating through a user's sessions and emitting events individually, this change sends a single event to a user-specific room. This approach is more efficient, reducing overhead and improving performance, particularly for users with multiple concurrent sessions.

In testing this dramatically reduces emits and server load.

* Update main.py

Added userroom join

---------

Co-authored-by: Tim Baek <tim@openwebui.com>
2025-11-07 21:11:58 -05:00
..
2025-08-10 22:28:31 +08:00
2025-09-27 04:05:12 -05:00
2025-11-06 15:21:06 -05:00
2025-11-06 12:34:30 -05:00
2025-08-10 00:02:58 +04:00
2025-08-21 12:44:16 +04:00
2025-07-16 15:23:18 +09:00
2025-11-06 16:35:19 -05:00
2025-04-15 09:55:35 +02:00
2025-10-07 16:20:27 -05:00
2025-09-26 17:49:42 -05:00
2025-11-06 03:43:59 -05:00
2025-10-07 16:20:27 -05:00