You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then in https://github.com/colyseus/colyseus/blob/master/packages/core/src/rooms/LobbyRoom.ts when calls client.send('rooms', this.filterItemsForClient(this.clientOptions[client.sessionId])); we call this method with options with value [] - array client.send('rooms', this.filterItemsForClient([])); and it can not work with such a data type
And then in my socket connection I get "room" massage with empty rooms:
This can be easily fixed if you send any option, to change the default value from an empty array to an object. Example
The text was updated successfully, but these errors were encountered:
bedryck
changed the title
Lobby returns empty rooms array when join without option
Lobby room send message with empty rooms array when join without option
Feb 9, 2024
``This is what happens in my opinion, when I am trying to connect without options, the library by default creates such payload for request:
Also, I add curl
Then in
https://github.com/colyseus/colyseus/blob/master/packages/core/src/rooms/LobbyRoom.t
s when callsclient.send('rooms', this.filterItemsForClient(this.clientOptions[client.sessionId]));
we call this method with options with value [] - arrayclient.send('rooms', this.filterItemsForClient([]));
and it can not work with such a data typeAnd then in my socket connection I get "room" massage with empty rooms:
This can be easily fixed if you send any option, to change the default value from an empty array to an object. Example
and then I get correct rooms data
The text was updated successfully, but these errors were encountered: