Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
emitters/remove
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);
req.end();
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.