I realize others have already posted issues concerning related topics (i.e. issue 26 and 210), but I wasn't able to get a definitive answer just browsing the comments nor the API docs nor the tests. It seems to me that subscribing with ack: true should have as default behavior that the message is not dequeued unless explicitly acknowledged. It is unsafe to dequeue it considering the client might have crashed. However, this is not the behavior I'm getting. Could someone please point me towards exactly what I need to do to get this behavior?
I realize others have already posted issues concerning related topics (i.e. issue 26 and 210), but I wasn't able to get a definitive answer just browsing the comments nor the API docs nor the tests. It seems to me that subscribing with ack: true should have as default behavior that the message is not dequeued unless explicitly acknowledged. It is unsafe to dequeue it considering the client might have crashed. However, this is not the behavior I'm getting. Could someone please point me towards exactly what I need to do to get this behavior?
Specifically, I'm looking for an example that implements 2. Explicit under 3.1.8 Acknowledgements on page 29 of http://www.rabbitmq.com/resources/specs/amqp0-9-1.pdf
Any help would be tremendously appreciated.
Thank you in advance.