Skip to content

Fix out of sync issue #74

@dbertella

Description

@dbertella

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions