Skip to content

fix: update client mapping logic to exclude disconnected clients#350

Merged
from2001 merged 1 commit intodevelopfrom
fix/notify
Feb 28, 2026
Merged

fix: update client mapping logic to exclude disconnected clients#350
from2001 merged 1 commit intodevelopfrom
fix/notify

Conversation

@from2001
Copy link
Collaborator

This pull request refines how device-to-client mappings are broadcasted for a room, ensuring that only currently connected clients are included. This prevents stale mappings for clients that have disconnected but whose device IDs are still present for reuse.

Improvements to client mapping accuracy:

  • Updated the _broadcast_id_mappings method in styly_netsync/server.py to only include mappings for clients that are still connected to the room, skipping any entries for clients that have been cleaned up but whose device IDs remain for reuse.

Close #349

@from2001 from2001 merged commit c18e764 into develop Feb 28, 2026
@from2001 from2001 deleted the fix/notify branch February 28, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stealth client does not receive disconnect notification when the last normal client leaves a room

1 participant