cnn-messaging-hapi

1.1.0 • Public • Published

cnn-messaging-hapi

NPM Package Build Status Coverage Status

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.

Package Sidebar

Install

npm i cnn-messaging-hapi

Weekly Downloads

7

Version

1.1.0

License

MIT

Last publish

Collaborators

  • niahmiah