Skip to content

luizfer/feathers-rabbit-consume

Repository files navigation

feathers rabbit consume

Build Status 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.

About

🎯 ⚡️ Easy way to consume queues at rabbit.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published