This module abstracts the timeout and the event emitter pattern and provides a callback pattern that can be used as a route wrapper or can be promisified and used in a promise chaining pattern.
var pfclient = require('palmettoflow-client')
var handler = pfclient({ timeout: 2000}, ee)
handler(
newEvent('subject', 'verb',
{ data: 'here' },
{ actor: 'here'}
), function (err, result) {
// handle result
}
)
npm test
create an issue