Hacker News new | ask | show | jobs
by sooheon 427 days ago
To clarify, dealing with spotty connection / offline mode is not possible with this kind of approach?
2 comments

Offline mode - not possible.

Spotty connection - no problem, SSE reconnects.

Reconnects eventually when things time out, but in the meantime, there will be a lot of frustrated waiting.
In my experience it reconnects faster and more reliably than web sockets. Also nothing is stopping you telling the user the connection is down/retrying etc.
Also because of the compression being used the game runs fine on 3G connections.