Skip to content

Instantly share code, notes, and snippets.

@arisolt
Last active December 11, 2015 21:48
Show Gist options
  • Save arisolt/4665004 to your computer and use it in GitHub Desktop.
Save arisolt/4665004 to your computer and use it in GitHub Desktop.
var dnode = require('dnode');
var stuff;
var async = require('async');
d = dnode.connect(9000);
d.on('remote', function(remote){
async.series([function (callback) {
remote.getStuff(function (a) {
stuff = a;
console.log('line 9 - stuff is: ' + stuff);
callback();
});
}, function () {
console.log('line 12 - stuff is: ' + stuff);
}]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment