MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

Access to Client Outbound Publishing queue

Open dalekawamura opened this issue 3 years ago • 3 comments

Is there any way to see how large the outbound publishing queue is? We would like to throttle the data our application publishes if the outbound publishing queue is getting too large/backed up but I don't see any way to determine the size.

Also asked in Discussions...

dalekawamura avatar Jan 27 '22 15:01 dalekawamura

Do you refer to the server or client?

chkr1011 avatar Jan 27 '22 19:01 chkr1011

Client. We have an app that is connected via a cellular modem and want to slow down traffic if it becomes backed up sending traffic to the broker.

dalekawamura avatar Jan 31 '22 13:01 dalekawamura

The client has no internal queue. So you can simply check the network state before publishing.

With the managed client this is not possible.

chkr1011 avatar Feb 07 '22 08:02 chkr1011