Skip to content

Instantly share code, notes, and snippets.

@tanepiper
Created June 25, 2012 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanepiper/bd54f3886f122359ee0c to your computer and use it in GitHub Desktop.
Save tanepiper/bd54f3886f122359ee0c to your computer and use it in GitHub Desktop.
var dnode = require('dnode');
var client = dnode.connect(5001);
client.on('local', function(local) {
console.log('local', local);
});
client.on('remote', function(remote) {
console.log('remote', remote);
});
var dnode = require('dnode');
var server = dnode();
server.on('local', function(local) {
console.log('local', local);
});
server.on('remote', function(remote) {
console.log('remote');
});
server.listen(5001);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment