1.0.0 • Published 7 years ago
rhea-nodejs-client v1.0.0
Rhea nodejs client
Rhea client is javascript client built on RHEA amqp library.
Installation
rhea-nodejs-client requires Node.js v0.10+ to run.
Install to global env, if you would like use client as cmd program.
$ npm install rhea-nodejs-client -g
For standart using install to local env.
$ npm install rhea-nodejs-client
Using
Using cmd client part
$ rhea-sender-client --broker "username:password@localhost:5672" --address "queue_test" --count 2 --msg-content "text message" --log-msgs dict
$ rhea-receiver-client --broker "username:password@localhost:5672" --address "queue_test" --count 2 --log-msgs dict
Using in script or node
var rhea_client = require('rhea-nodejs-client');
var opts = rhea_client.Options;
var sender = rhea_client.SenderClient;
opts.broker('username:password@localhost:5672');
opts.address = 'queue_test';
opts.count = 2;
opts.msgContent = 'text message';
sender.Run(opts);
Docker
To build image with CENTOS7 and rhea-nodejs-client use Dockerfile in project lib:
docker build -t rhea-nodejs-client-image
Or you can use image from dockerhub
docker pull kornysd/rhea-nodejs-client
License
Apache v2