cnn-messaging-hapi
v1.1.0
Published
Wraps cnn-messaging module in a hapi plugin
Downloads
7
Maintainers
Readme
cnn-messaging-hapi
This is a hapi.js plugin that wraps cnn-messaging-hapi to provide graceful shutdown.
The module creates an instance of messenger, that is bound to the hapi server object.
setup
server.register({
register: require('cnn-messaging-hapi'),
options: {
amqp: {
connectionString: 'amqp://localhost:5672',
exchangeName: 'EXAMPLE_APP'
}
}
}, (err) => {
if (err) {
throw err;
}
});
See tests for further usage examples.
See the documentation for cnn-messaging for details.