Skip to content

Instantly share code, notes, and snippets.

View datariot's full-sized avatar
🚀

David W. Allen datariot

🚀
  • DataRiot
  • Boulder, CO
View GitHub Profile

Keybase proof

I hereby claim:

  • I am DataRiot on github.
  • I am datariot (https://keybase.io/datariot) on keybase.
  • I have a public key whose fingerprint is FF00 5B4C 9854 089B A714 DF14 CB4C E32A 616A 5702

To claim this, I am signing this object:

@datariot
datariot / MeteorMessageCount.js
Last active December 19, 2015 15:29
Having a problem where running on the server in Meteor, only the first callback parameter is received. Running at Node console correctly returns all the parameters for the callback. I've left out some code that ensures the RabbitMQ server is ready for brevity.
AMQP = Npm.require("amqp");
rabbitMQ = AMQP.createConnection({ host: '127.0.0.1' });
rabbitMQ.queue('foo', {durable:true, autoDelete:false}, function (queue, messages, consumers) {
console.log('Queue ' + queue.name + ' is open with ' + messages + ' messages');
});
/* Queue foo is open with undefined messages */