@julian said in RFC: Make the forum clients more resilient to bad connections:
Hey @sloosecannon -- good topic 
In general, the times when connection drops are most noticible are during:
- Page navigations
- Posts
Other real-time things you honestly can't tell, since if someone posts and it doesn't show up right away, it's not really all that detrimental to the end user experience 
Now, the former, we really can't do anything about, since if the call to the api route takes awhile, we just have to wait... the latter, we could. A post could be rendered on the client-side, and then stored in the active session while it goes about saving to the backend.
The risk, of course, is that the user might leave the site, at which point poof, goes the transient data.
Not so good 
Right - I believe Discourse does something like that as well. And it does indeed have exactly that issue 
I'd be interested in a way to debug what exactly has broken down in socket.io when these drops happen - it seems like it sometimes just refuses to reconnect without a page refresh, and I think that's the thing people find most annoying - it's not necessarily the fact that it breaks, it's that it breaks and stays broken!