wabbitzzz

19.0.2 • Public • Published

wabbitzzz Build Status

Exchange

var Exchange = require('wabbitzzz').Exchange;
var exchanage = new Exchange({
		name: 'this_is_a_cool_exchange'
	});

exchange.publish({hi: 'you'});

// publish the message, but have rabbit hold it for 3 seconds first
exchange.delayedPublish({bye: 'you'}, {delay:3000});

Queue

var Queue = require('wabbitzzz').Queue;
var queue = new Queue({
		name: 'myQueue',
		exchangeNames:['this_is_a_cool_exchange'],
	});

queue(function(msg, ack){
	console.dir(msg);
	ack(); // pass something to ack for a failure
});

RPC Send

var rpc = require('wabbitzzz').request('method-name');
rpc(req, function(err, res){

});

RPC Listen

var rpc = require('wabbitzzz').response('method-name');
rpc(function(err, req, cb){

});

Policy

Do it like this.

Pattern	^(?!amq\.).*(?<!_rpc)$
Apply to	all
Definition	
ha-mode:	all
ha-sync-mode:	manual
Priority	-101

Readme

Keywords

Package Sidebar

Install

npm i wabbitzzz

Weekly Downloads

1,516

Version

19.0.2

License

MIT

Unpacked Size

63.2 kB

Total Files

15

Last publish

Collaborators

  • chevett
  • relay_single