UNPKG

dnode-tarantula

Version:

asynchronous rpc system for node.js, bi-direction and poly-direction communication...

17 lines (13 loc) 293 B
var dnode = require('../../index'); var connectOptions = { port: 3000, host: 'localhost' } var client = new dnode.client({ fn: function(data, callback) { console.log(data); callback(data); } }, connectOptions); client.on('connection', function(remote) { });