Created
October 14, 2014 13:20
-
-
Save jsha/6e88d507132c5e52d35d to your computer and use it in GitHub Desktop.
Socket doesn't keepalive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
function go() { | |
request('https://api.twitter.com/robots.txt', function (error, response, body) { | |
console.log(body); | |
}) | |
} | |
setInterval(go, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment