Skip to content

Instantly share code, notes, and snippets.

@queso
Created June 2, 2013 21:05
Show Gist options
  • Save queso/5694982 to your computer and use it in GitHub Desktop.
Save queso/5694982 to your computer and use it in GitHub Desktop.
this.socket_ = net.createConnection(port, host);
this.socket_.setKeepAlive(true, 60);
this.socket_.setTimeout(0);
this.socket_.on('connect', function() {
self.responseWaiters_.push({
callback: callback
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment