Created
September 23, 2011 17:12
-
-
Save jlongster/1237914 to your computer and use it in GitHub Desktop.
pulse client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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