1.0.0 • Published 5 years ago

feathers-rabbit-consume v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

feathers-rabbit-consume

Build Status Code Climate Test Coverage Dependency Status Download Status

Installation

npm install feathers-rabbit-consume --save

Complete Example

Here's an example of a Feathers server that uses feathers-rabbit-consume.

const feathers = require('@feathersjs/feathers');
const amqp = require('feathers-rabbit-consume');

// Initialize the application
const app = feathers();

// Initialize the plugin
app.configure(amqp({
    "url": "amqp://user:password@server",
    "streams": [
      {
        "exchange": {
          "name": "dummy-server",
          "type": "fanout",
          "durable": false
        },
        "queue": {
          "name": "dummy-queue",
          "service": "base/events",
          "method": "create"
        }
      }
    ]
}));

License

Copyright (c) 2018

Licensed under the MIT license.