Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

seneca-act-stream

0.0.3 • Public • Published

SenecaActStream

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);

Acknowledgements

This project was kindly sponsored by nearForm.

License

MIT

Keywords

none

install

npm i seneca-act-stream

Downloadsweekly downloads

197

version

0.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability