Open kyle8998 opened 6 years ago
Suggestion: send an initial "sync" packet on connect.
Also suggest having #
urls (such as domain.herokuapp.com/#/r/1) so that a viewer that has to reconnect can refresh the page and still stay in the same room
Having more experience with the app now, I realize that I misinterpreted the issue.
Instead I suggest a "heartbeat". Not exactly sure what the method is that fails when a client is disconnected from the sync, but the symptoms are clear:
Heartbeats are excellent in these cases:
In addition, the heartbeat can be used to relay timestamp sync data
And, to mitigate any problems:
There is no way for viewers to sync to the host if they get disconnected