arobson / rabbot

Deprecated: Please see https://github.com/Foo-Foo-MQ/foo-foo-mq
MIT License
276 stars 129 forks source link

Hatch to channel#get #165

Closed alonisser closed 5 years ago

alonisser commented 6 years ago

I need to implement manual get of one message (and not subscribe to push) . with node.amqp this would be with channel get

But rabbot does not expose channel. I think I can get to channel using

let channel = rabbit.getQueue(queueName).lastQueue.channel

But this is quite cumbersome. Is this the correct way to do this? is there another way to implement the "pull" message use case?

My use case:

From what I understand, I don't see a way to implement this in a "push" (startSubscribe) scenario - but I need a "pull" scenario

Thanks!