Open Glavin001 opened 10 years ago
what exactly needs to be done once we detect that the app is offline? w e can just integrate checking of the navigator.Online method, but since the browser takes care of loading from cache.... i put a check for navigator in home.js however
Yeah, there isn't too much valuable in it since most everything else is cached.
What is not, is realtime data, and I wanted it to popup message when either disconnected or offline.
We could use Socket.io's connection_failed
and disconnect
events for that instead? https://github.com/LearnBoost/socket.io/wiki/Exposed-events
http://stackoverflow.com/a/2384227/2578205 Or http://stackoverflow.com/a/9786599/2578205 Or http://remysharp.com/2011/04/19/broken-offline-support/