Skip to content

Instantly share code, notes, and snippets.

@3rd-Eden
Created October 24, 2011 17:45
Show Gist options
  • Save 3rd-Eden/1309613 to your computer and use it in GitHub Desktop.
Save 3rd-Eden/1309613 to your computer and use it in GitHub Desktop.
HTTPClient.prototype.end = function () {
var self = this;
Object.keys(this.agent.sockets).forEach(function (socket) {
console.log(self.agent.sockets[socket][0]._handle.socket.onend());
self.agent.sockets[socket]._handle.onend();
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment