runsv-amqplib
v0.0.3
Published
RunSV wrapper for amqplib
Downloads
123
Readme
Runsv wrapper for amqplib
Install
$ npm install runsv-amqplib
Usage
// CI_AMQP_URL='amqp://guest:guest@localhost:5672'
const amqplib = callback(CI_AMQP_URL);
const sv = runsv.create();
sv.addService(service);
sv.start(function(err){
const {amqplib} = sv.getClients();
// Do your magic here...
amqplib.createChannel(function(err, chan){
// ...
});
});
Contributing
Sample .env
file (only required if you want to modify this library)
#.env file sample
CI_AMQP_URL='amqp://guest:guest@localhost:5672'