@ankittiwaari/connection-monitor
v1.0.5
Published
A simple tool to monitor your network connectivity. It will show an alert when your network transitions from connected and diconnected state
Downloads
2
Maintainers
Readme
Connection monitor
A simple tool to monitor your network connectivity. It will show an alert when your network transitions from connected and diconnected state
Usage
const cm = require("@ankittiwaari/connection-monitor")
let config = {
pingUrl: "<a-suitable-network.url>", //url to ping
pingInterval: 10000 //the interval in which ping must be sent
}
cm.monitorNetwork(config);