Skip to content

Instantly share code, notes, and snippets.

@catarak
Last active April 26, 2017 15:23
Show Gist options
  • Save catarak/d0793f00fa04ab1e54c6cc5959f95a87 to your computer and use it in GitHub Desktop.
Save catarak/d0793f00fa04ab1e54c6cc5959f95a87 to your computer and use it in GitHub Desktop.
var seneca = require('seneca')();
// seneca.use('./todo.js');
seneca.client({ type: 'tcp', pin: 'role:todo' });
seneca.act({role:'todo', cmd:'add', name:'Buy Milk'}, function(err, todo) {
console.log(todo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment