Last active
April 26, 2017 15:23
-
-
Save catarak/d0793f00fa04ab1e54c6cc5959f95a87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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