1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00
Files
mywebsite/node_modules/broadway/examples/nodejs/app.js
2016-01-04 12:25:28 -05:00

18 lines
372 B
JavaScript

var broadway = require('../../'),
app = new broadway.App();
// Passes the second argument to `helloworld.attach`.
app.use(require("./plugins/helloworld"), { "delimiter": "!" } );
app.use(broadway.plugins.log, {
logAll: true
});
app.init(function (err) {
if (err) {
console.log(err);
}
});
app.hello("world");
app.emit('world:hello', { meta: 'is here' });