-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently sessions are never removed from memory, and we prevent the server from running out of memory by externally restarting it every Sunday morning.
Instead of this, we can automatically remove sessions from the ShareDB some time after the last user disconnects.
Implementation:
- Track the number of users connected to each session by binding to the WebSocket connect/disconnect events. Also track the last disconnect time.
- Every hour or so, remove sessions that have no users and whose last disconnection time is more than an hour old.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request