harcon-nsq
Version:
NSQ plugin for the harcon messaging/service bus of node-based enterprise entities.
18 lines (16 loc) • 510 B
JavaScript
var async = require('async')
module.exports = {
name: 'Domina',
auditor: true,
// When Julie is woken up, send a gentle message to everyone listening to such messages... Walter and Pater namely
force: function ( ignite, callback ) {
async.series([
function (cb) {
ignite( 0, null, '', 'greet.simple', 'It is morning!', 'Time to wake up!', cb )
},
function (cb) {
ignite( 1, null, 'Inflicter.click', 'Claire.simple', 'It is morning!', 'Time to wake up!', cb )
}
], callback )
}
}