postwait/node-amqp — pull request #37 by cipriancraciun (2011-10-18 12:44:56+00:00)
Title: Add support for `prefetchCount` option for `Queue.subscribeRaw`

This patch makes `Queue.subscribeRaw` also a call to `basic.qos` in order to establish the number of prefetched messages. (Without this event driven benefits of NodeJS are unused as we won't have more than one single outstanding message to handle.)

P.S.: The patch I've made I've only tested in my particular context, and I hope doesn't break anything. (It's been made ontop of `v0.0.7`, but I think it could also apply successfully ontop of `v0.1.0`.)