ripple/ripple-lib — pull request #118 by shekenahglory (2014-07-14 03:31:45+00:00)
Title: [FEATURE] reconnect servers when browser comes online

This works just as well as the polling method I proposed earlier, and less invasive. Works perfectly in Chrome and Safari, but Firefox interprets 'online' differently. I believe IE will work also, but its untested.