Hi I am connecting to the HiveMQ CE with an Mqtt5Reactor client and subscribing with MQTT5Connect.cleanSession(false) however when I terminate my service and publish messages to the topic while the client is offline, and then reconnect the client I dont receive the messages. Is anyone aware of any nuances / gotchas with Persistent sessions / clean Session flag that may be causing this?
Thanks for reaching out.
Did you set
sessionExpiryInterval set while connecting the client?
If not then you will need to set
sessionExpiryInterval as default it is set as 0. It defines the length of time in seconds that session state(data) will be available after the client disconnects.
Please check here for more details about session expiry.