Skip to content

Closing a room? #425

Closed Answered by Totodore
Mettwasser asked this question in Q&A
Jan 8, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Mettwasser
Comment options

@Totodore
Comment options

Answer selected by Mettwasser
@Mettwasser
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants