← Back to team overview

mosquitto-users team mailing list archive

Re: mosquitto_sub and clean session flag disable

 

Hi Nagesh,

> I think, you are referring to retain flag.
>
> When you are connecting with clean session flag, then your subscriptions are
> retained. But, if you want the messages in the interim of disconnection
> (btw, you would get only the latest message), you need to publish with
> retain flag.

Retained messages and messages queued for persistent/durable clients
are different features, don't mix them up. You don't need messages to
be retained for them to be queued, although they can be.

Cheers,

Roger


References