Currently the game page polls server every 2s and retrieves entire game state json. It caches the object and does a deep comparison with response to prevent unnecessary component re-renders.
But the ideal way is to push only data that has changed (events) from the server to the clients.
Currently the game page polls server every 2s and retrieves entire game state json. It caches the object and does a deep comparison with response to prevent unnecessary component re-renders.
But the ideal way is to push only data that has changed (events) from the server to the clients.