Skip to content

Instantly share code, notes, and snippets.

@jlongster
Created September 23, 2011 17:12
Show Gist options
  • Save jlongster/1237914 to your computer and use it in GitHub Desktop.
Save jlongster/1237914 to your computer and use it in GitHub Desktop.
pulse client
var amqp = require('amqp');
var conn = amqp.createConnection({host: 'pulse.mozilla.org',
login: 'public',
password: 'public'});
conn.on('error', function(e) {
console.log('error: ' + e);
});
conn.on('ready', function() {
var q = conn.queue('jwl-queue');
q.bind('org.mozilla.exchange.code', '#')
q.subscribe(function(msg) {
console.log(msg);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment