Skip to content

Instantly share code, notes, and snippets.

@heapwolf heapwolf/16.js
Created Aug 6, 2012

What would you like to do?
var req = http.request(options);
var responseListener = function(response) {
response.on("data", function(data) {
console.log("some data from the response", data);
req.on('response', responseListener);
setTimeout(function() {
req.removeListener('response', responseListener);
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.