glowing-bear/glowing-bear — pull request #477 by lorenzhs (2014-10-18 10:45:02+00:00)
Title: Start implementing auto-reconnect

I was recently travelling by train through an area with rather flaky mobile coverage, and it sucked to have to reconnect all the time, especially since GB throws you out of your current view and onto the landing page, so you can't even keep reading things that you already have offline. Instead, it would be nice to display a "reconnecting..." banner, and try to reconnect periodically, and allow the user to take up where they left off.

Ideas to take this even further:
- command queue while offline (send this to that buffer)

Things that need to be done before this can be merged:
- The UI is currently really bad. It covers actual text, and hasn't been tested on mobile
- A "reconnect now" link needs to be added (exponential backoff → timeouts can become quite large)
- Needs to be tested in a range of scenarios

You can try this out by manually closing the connection in WeeChat (/relay → D), or disturbing your internet connection in a way that doesn't run into a timeout (on a phone, that would be switching from mobile network to wifi or the other way around)