amqp-wakanda is an AMQP client for wakanda (based on the node-amqp module).
Clone the repository to the Modules folder, and move the content of the dependencies
folder to the Modules
folder.
Please visit the node-amqp module repository.
var amqp = require('amqp-wakanda');
var connection = amqp.createConnection();
// Wait for connection to become established.
connection.on('ready', function () {
// Use the default 'amq.topic' exchange
connection.queue('my-queue', function(q){
// Catch all messages
q.bind('#');
// Receive messages
q.subscribe(function (message) {
// Print messages to stdout
console.log(message);
});
});
});
wait();
The AMQPS is not tested!
Please visit the node-amqp module repository.