-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds the following methods: - fetchSockets: return the matching socket instances - addSockets: make the matching socket instances join the specified rooms - delSockets: make the matching socket instances leave the specified rooms - disconnectSockets: disconnect the matching socket instances Those methods will then be exposed by the Socket.IO server: ```js // clear room io.socketsLeave("room1"); // disconnect all sockets in room io.in("room2").disconnectSockets(); // fetch socket instances in room io.in("room3").fetchSockets(); ``` This feature will also be extended in the Redis adapter to handle multiple Socket.IO servers.
- Loading branch information
1 parent
985bb41
commit 1c9827e
Showing
2 changed files
with
137 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters