publishFail property

Stream<MqttPublishAckMessage>? get publishFail

Publish fail message stream. A publish acknowledgement message is added to this stream if the message indicates a failure to publish the message. Note that the message identifier will be the same as the one in the original publish message.

Attach listeners only after connect has been called.

Implementation

Stream<MqttPublishAckMessage>? get publishFail =>
    publishingManager?.publishFail.stream;