Skip to content

Instantly share code, notes, and snippets.

@ciwolsey
Created November 25, 2014 13:39
Show Gist options
  • Select an option

  • Save ciwolsey/7d15fcbfaf1c9d9a20cd to your computer and use it in GitHub Desktop.

Select an option

Save ciwolsey/7d15fcbfaf1c9d9a20cd to your computer and use it in GitHub Desktop.
ping = require('ping');
function doPing(){
console.log("ping");
ping.sys.probe("youtube.com", function(alive){
console.log("pong");
});
}
// 10 Pings
doPing();
doPing();
doPing();
doPing();
doPing();
doPing();
doPing();
doPing();
doPing();
doPing();
ping
ping
ping
ping
ping
ping
ping
ping
ping
ping
ping
ping
ping
ping
ping
pong
pong
pong
pong
pong
pong
pong
pong
pong
pong
pong
pong
pong
pong
pong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment