Sends ICMP Echo Requests to server and reports results via a callback.
DNS resolution and the first ping begin immediately. The returned object can be used to
pause, resume, or cancel the ping, and to read statistics. The ping runs to completion,
with its callback, even if you don't keep a reference to it.
timeout (seconds per packet, default 2.0), family ("any" | "ipv4" | "ipv6", default "any"),
and callback (function).
Sends ICMP Echo Requests to
serverand reports results via a callback. DNS resolution and the first ping begin immediately. The returned object can be used to pause, resume, or cancel the ping, and to read statistics. The ping runs to completion, with its callback, even if you don't keep a reference to it.timeout(seconds per packet, default 2.0),family("any"|"ipv4"|"ipv6", default"any"), andcallback(function).