achilleasa / dart_amqp

Dart AMQP client implementing protocol version 0.9.1
MIT License
79 stars 40 forks source link

Support publish confirmations #61

Closed achilleasa closed 3 years ago

achilleasa commented 3 years ago

This PR introduces support for publish confirmations as described here.

The publish confirmation mechanism is exposed via two new channel-level methods.

Note that receiving an ACK for a message does not guarantee that it has been processed by one or more consumers. For example, when publishing to a queue with no consumers, the broker (tested with rabbitmq 3.9.7) will still ACK the message.

The PR also includes an example (in example/confirm) of using this new feature.

Fixes #60