noodlefrenzy / node-amqp10

amqp10 is a promise-based, AMQP 1.0 compliant node.js client
MIT License
134 stars 56 forks source link

Service Bus Subscription, Can't empty the message queue #357

Closed mirzaciri closed 3 years ago

mirzaciri commented 6 years ago

Hello,

I'm fairly new to AMQP protocol and don't have a lot of experience with it. I tried to search for open and closed issues, but couldn't find anything that was related to this.

Problem: We are trying to use Azure Service Bus with Sub/Pub functionality. When our App1 sends a message through a rest call to the topic, I can see it in the Azure portal (Subscription side). If I start the sample script from github, none of the messages are received.

But, if I send out a message while the listener is still running, then the message is processed fine.

I tried to look through the documentation, and couldn't find something that lets me empty the queue if the listener hasn't been running before the message was sent.