Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix out of sync issue #74

Open
dbertella opened this issue Jan 24, 2021 · 0 comments
Open

Fix out of sync issue #74

dbertella opened this issue Jan 24, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@dbertella
Copy link
Collaborator

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

@dbertella dbertella added the bug Something isn't working label Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant