noodlefrenzy / node-amqp10

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

Possible to disconnect only receiver? #338

Open MorganLindqvist opened 6 years ago

MorganLindqvist commented 6 years ago

Hi,

I have an application that reads a message from an AMQP server processing the message and then writing ta message back to the AMQP server.

The challenge I have is that when terminating the application I can not stop listening to incoming messages, process the one that just read, and then write them to the server. If I do not do this there is a risk that the application will close while a message is processed and hence will be lost.

The disconnect function closes both the sender and receiver.

/Morgan