0.2.0 • Published 7 years ago

app-service-bus v0.2.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

#Application Service Bus

    npm i app-service-bus
    const bus = require('app-service-bus')();
    
    bus.subscribe('event.*', (key, content) => {
      console.log(key, content);
    });
    
    setInterval(() => {
      bus.publish('event.user-added', { uid: 'foo' });
    }, 5000);

Options

const session = require('app-service-bus')(uri);

PropertyDescriptionDefault
uriDefine uri where RabbitMQ server is running."amqp://localhost"
Example: amqp://username:password@rabbitmq.service.consul:5672

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm i
$ npm test
0.2.0

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago