MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

Event when pending ApplicationMessage was published

Open AlanMcInally opened this issue 1 year ago • 1 comments

Describe the feature request

I would like to have an event on managed client to be triggered, if a pending message was published.

Which project is your feature request related to?

  • ManagedClient

Describe the solution you'd like

In my application, I want to display the count of pending application messages of unmanged client. I do not want to read Property PendingApplicationMessagesCount continously. I think it would be nicer to be informed by an event.

AlanMcInally avatar May 23 '24 04:05 AlanMcInally

Please try event ApplicationMessageProcessedAsync. If the exception is null, the processing was successful and the message is properly published.

chkr1011 avatar May 26 '24 08:05 chkr1011