5.0.0 • Published 3 years ago
ping-a-monitor v5.0.0
ping-a-monitor
Pings the monitor with a ping (for discord ws ping?) every x seconds to XYZ website.
How to use it:
require('pingmonitor')('https:ping.that/u/r.l', intervalInMs, () => ping, { sendInQuery: false, sendInJSON: true, sendAtStart: true });
This code is pinging https:ping.that/u/r.l
every intervalInMs milliseconds with an object { ping: number }
.
Set sendInQuery: true
to ping the url in form of https:ping.that/u/r.l?ping=ping
(instead of sending as JSON).
If sendInJSON
isn't true, the ping will be sent via text
.
Easy ... that's it!
Author: bestPlayer_xu
3.0.1
3 years ago
3.1.0
3 years ago
5.0.0
3 years ago
3.0.0
3 years ago
2.0.3
3 years ago
2.0.2
3 years ago
2.0.5
3 years ago
2.0.4
3 years ago
4.0.0
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago