Get notified when you're back online! ⚡️
Ping registers a service worker on load. The UI responds to network connectivity and when requested to be notified, the service worker starts polling the network.
When the poll succeeds, Ping sends a system notification to alert the user that the network connectivity is back up.
A project by @abinavseelan & @rheaditi
Want to raise an issue or pull request? Do give our Contributing page a read. 🤓
To set up the codebase, clone the repository.
git clone https://github.com/campvanilla/ping.git
Once the repository has been cloned, we need a way to serve the /public
directory. You can use any tool that allows you to serve a folder on a port. One option is http-server.
To set things up with http-server
, install the CLI
npm install -g http-server
Once installed, you can serve the /public
folder using http-server
http-server /public
View the application at http://localhost:8080/