News for hackers. Stuff that matters.
Re:Show HN: The Disconnect – a web magazine that forces you ... by chrisbolin on Thursday February 08, 2018 @01:21PM (#16334262)
and if you're interested in the actual mechanics of detecting online / offline connection, look into navigator.onLine and "online" and "offline" events. https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOn...

(We also use polling as a backup for browsers that don't support the above features)

There are no comments on this comment yet.