Is it possible to fetch/recover those which are being published with no subscriber attached ??

Publisher are running & publishing messages to topic but none of the client is attached to a hivemq topic. Is it possible to fetch those which are being published once subscriber/client attached to a broker?

Hello Rahul,

Thanks for your interest in MQTT and HiveMQ!

The broker is not queueing messages, if there is no subscriber for the topic. You can think about it like this: while there is no subscriber to the topic, the topic does not exist.

To avoid this behaviour, the client can request a persistent session when it connects to the broker. You can learn more about details of this and other MQTT features in our MQTT Essentials course.

Kind regards,
Dasha from HiveMQ Team

2 Likes