harcon-nsq
Version:
NSQ plugin for the harcon messaging/service bus of node-based enterprise entities.
15 lines (14 loc) • 471 B
JavaScript
module.exports = {
name: 'Julie',
context: 'dawn',
// When Julie is woken up, send a gentle message to everyone listening to such messages... Walter and Pater namely
wakeup: function( ignite, callback ){
this.harconlog( null, 'Simple logging test', {}, 'warn' );
ignite( 'greet.simple', 'It is morning!', 'Time to wake up!', function(err, res){
callback(err, res);
} );
},
dormir: function( ignite, callback ){
callback( null, 'Non, Mais non!' );
}
};