UNPKG

harcon-nsq

Version:

NSQ plugin for the harcon messaging/service bus of node-based enterprise entities.

14 lines (13 loc) 446 B
module.exports = { name: 'Marie', context: 'greet', init: function (options) { console.log('Init...', options); }, // Simple service function listening to the greet.simple message where greet comes from context and simple is identified by the name of the fuction. simple: function (greetings1, greetings2, callback) { this.greetings = [greetings1, greetings2]; this.shifted( { data: 'content' } ); callback(null, 'Bonjour!'); } };