socket room empty #4192
-
I have such a phenomenon When a user enters When another user enters for the first time, the two will not be in the same room The second time they enter the room, they can communicate Then I print the log, and the socket.rooms are empty client
server
log
version"socket.io": "^4.4.0", |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Do I need to create room before joining room? How |
Beta Was this translation helpful? Give feedback.
-
That sounds weird. Are you able to reproduce with a basic project https://github.com/socketio/socket.io-fiddle? |
Beta Was this translation helpful? Give feedback.
socket.rooms
is a Set, so it's not serializable (hence your log):That sounds weird. Are you able to reproduce with a basic project https://github.com/socketio/socket.io-fiddle?