feathers-rabbit-consume
v1.0.0
Published
Easy way to consume queues at rabbit.
Downloads
2
Readme
feathers-rabbit-consume
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.