stathismor/scopa

Fix out of sync issue

Opened this issue · 0 comments

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:

  1. It's your turn to play
  2. Go offline on your browser
  3. Go back online
  4. 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