Skip to content

Instantly share code, notes, and snippets.

@brianc
Created November 19, 2010 17:44
Show Gist options
  • Save brianc/706847 to your computer and use it in GitHub Desktop.
Save brianc/706847 to your computer and use it in GitHub Desktop.
connect with a stream
var Stream = require('net').Stream;
var stream = new Stream();
stream.connect(6543,'1.0.1.1');
stream.on('connect', function() {
console.log('connected');
stream.end();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment