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
Check for circular references in the room object.
Try stringifying the whole room object before sending. stringify will fail and tell if room has some circular references.
@318097 the event for sending new game state from server to client was already there. Please go through the startGame method in game controller. It sends the current game state to all the clients in the room. You just have to update the game state in the calculateNextGameState method. All the other things like sending game info at regular intervals from server to client, starting the game after 3 seconds and leaving the room have been done in my PR.
PR #107 includes the code to transfer the updates from client to server & back again.
This problem occurs when the whole 'room' object is sent back.
It works fine when 'pacmanOne' & 'pacmanTwo' is sent. (In short, there is a problem when huge data is sent)
Please come to a conclusion about this problem.
The text was updated successfully, but these errors were encountered: