Closing a room? #425
Closing a room?
#425
-
How would I close a room upon having no connections to that room anymore? |
Beta Was this translation helpful? Give feedback.
Answered by
Totodore
Jan 8, 2025
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This function will be called upon socket disconnection, cleaning the
Sid
list corresponding to the room.https://github.com/Totodore/socketioxide/blob/2e775b6b1f1282f5c90371ff817a68413bdfa741/crates/socketioxide/src/adapter.rs#L177C5-L183C4
However the "room" entry itself is not cleared even if there is no socket in it. This is a little memory leak that will be fixed with the PR #419.