Getting consumed messages on fresh connections

Hi

When I am starting a subscription for a given topic, I am getting an old message.
QoS = 2, clean session is true, using PAYG

Please let me know if I need to provide more details.

Hi @vijaysy,

do you use retained messages? This could explain that a clean session gets a message after the subscription.

Greetings,
Michael from the HiveMQ team

Hi @michael_w

Yes, I was setting retained flag as true. I was not aware of this concept.
Thank you, above video was very helpful.

Sorry for inconvenience.

Thank you
Vijay

Hi @vijaysy

no biggie, the forum is there to help :slight_smile:

Greetings,
Michael