I had the idea that onStateChange method includes the current state of the application, but the players MapState comes as an object without relevant data about Players. I changed that call to room.state.onChange = () => {} and it seems to be a better way to update my client-side state
0
Reputation
2
Posts
680
Profile views
0
Followers
0
Following
Posts made by davidhernandeze
RE: When I get data from Room.onStateChange I don't receive my players
posted in Questions & Help •
When I get data from Room.onStateChange I don't receive my players
posted in Questions & Help •
I have a players Map Schema on my State, I receive my changes on my client, but the array players [] its empty. Is this a normal behavior?