Skip to content

Instantly share code, notes, and snippets.

@geek
Created April 26, 2013 18:08
Show Gist options
  • Save geek/5469194 to your computer and use it in GitHub Desktop.
Save geek/5469194 to your computer and use it in GitHub Desktop.
var Http = require('http');
setInterval(function () {
Http.get('http://localhost:9000/', function(res) {
console.log("Got response: " + res.statusCode);
}).on('error', function(e) {
console.log("Got error: " + e.message);
});
}, 5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment