Fix out of sync issue
Opened this issue · 0 comments
dbertella commented
So, issue with states out of sync, is probably us (front-end) not detecting when it's gone offline. And then we should reconnect on coming back again. You can test that by:
- It's your turn to play
- Go offline on your browser
- Go back online
- You can now "play" multiple times, that's what happening on the server and what other players/spectators would see.
That's why I could not reproduce locally, because apparently offline mode does not work for WS
https://stackoverflow.com/questions/38729050/chrome-disabling-web-sockets-or-closing-a-web-socket-connection