mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
A socket joins its user's room, and an admin's the admin room, once at connect time, so logging out or revoking a user's sessions left their open sockets receiving notifications and the log stream. Each socket is now recorded against the login session that opened it, and removing a session disconnects those sockets on whichever worker holds them. The main server takes one disconnect handler, so it moves next to the connect handler and runs the activity cleanup as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>