Skip to content

A Node.js native wrapper around Apache Qpid, specifically the AMQP 1.0 Proton C Messenger API

Notifications You must be signed in to change notification settings

pofallon/node-qpid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

78984aa · Jan 25, 2015

History

37 Commits
Feb 12, 2013
Feb 12, 2013
Jan 25, 2015
Jan 25, 2015
Feb 12, 2013
Jan 25, 2015
Jun 22, 2014
Jan 25, 2015
Dec 27, 2012
Jan 21, 2013
Jun 17, 2014

Repository files navigation

node-qpid

A Node.js native wrapper around Apache Qpid, specifically the AMQP 1.0 Proton C API

Usage

You can use it to exchange messages with AMQP 1.0 brokers:

// Sending
var Messenger = require('qpid').proton.Messenger;
var m = new Messenger();

m.send({address: address, body: message}, function(err) {
  if (err) {
    console.log("Error sending message: " + err.message);
  }
});
// Receiving
var Messenger = require('qpid').proton.Messenger;
var m = new Messenger();

m.on('subscribed', function(url) {
  console.log("Subscribed to " + url);
});

m.on('message', function(message) {
  console.log(message.body);
});

m.subscribe(address).receive();

The module has been preliminarily tested against:

Installation

It expects you to already have version 0.3 of the qpid-proton library installed on your (Linux) system.

Issues

It's still rough around the edges and not ready for prime time, but pull requests are welcomed!

Acknowledgements

node_sqlite3 has been an invaluable resource while writing this native module!

About

A Node.js native wrapper around Apache Qpid, specifically the AMQP 1.0 Proton C Messenger API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published