hangry-river-horse
hangry-river-horse copied to clipboard
WebSocket disconnect causes game to stop working
For both the player and the host site, if the websocket connection to the server closes, the page will no longer work. For the player site, you can keep tapping and the game will still work, but your score and balls count will not update automatically as your hippo eats. For the host site, it will no longer update at all once the connection breaks.
When playing on my phone, I've noticed that the websocket connection will close if I have my phone locked for an extended period of time. For both the host site and the player site this could be fixed simply by refreshing the page, though for the player site that would require that #19 be implemented first. For this host site, implementing #41 would also fix this issue automatically.