-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The support for numeric rooms was lost when we used a Map for the 'rooms' property, which stores the relationships between Socket IDs and rooms ([1]). This commit restores the ability to use numbers as rooms: ```js socket.join(42); io.to(42).emit("hello"); ``` Note: for proper TypeScript support, we should also update the type of Room to `string | number` [1]: socketio/socket.io-adapter@53ed3f4 Related: #418
- Loading branch information
1 parent
bbfb84a
commit 214b5d1
Showing
2 changed files
with
21 additions
and
2 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