Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.66 KB

README.md

File metadata and controls

67 lines (46 loc) · 1.66 KB

Seneca

A Seneca.js plugin

SenecaActStream

Gitter

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:

Install

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

Contributing

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.

Acknowledgements

This project was kindly sponsored by nearForm.

License

Copyright Matteo Collina and other contributors 2014 - 2016, Licensed under MIT.