A Seneca.js plugin
If you are new to Seneca in general, please take a look at senecajs.org. We have everything from tutorials to sample apps to help get you up and running quickly.
If you're using this module, and need help, you can:
- Post a github issue,
- Tweet to @senecajs,
- Ask on the Gitter.
npm install seneca-act-stream
Acting on Seneca through a Stream2 interface.
var seneca = require('seneca')()
, actStream = require('./')
, pattern = { sample: 'call' }
, stream = actStream(seneca, pattern)
, message = { hello: 'world' }
function check(arrived, done) {
console.log('message received', arrived)
done(null)
}
seneca.add(pattern, check);
stream.on('one', function() {
console.log('one event')
})
stream.end(message);
The Senecajs org encourages open participation. If you feel you can help in any way, be it with documentation, examples, extra testing, or new features please get in touch.
This project was kindly sponsored by nearForm.
Copyright Matteo Collina and other contributors 2014 - 2016, Licensed under MIT.