mosquitto/man/common/option-session-expiry-interval.xml
2025-08-11 23:57:45 +01:00

18 lines
614 B
XML

<varlistentry>
<term><option>-x</option></term>
<listitem>
<para>
Set the session-expiry-interval property on the CONNECT packet. If
you use this option, the client will be set to be an MQTT v5 client.
Set to 0-4294967294 to specify the session will expire in that many
seconds after the client disconnects, or use -1, 4294967295, or ∞
for a session that does not expire. Defaults to -1 if -c is also
given, or 0 if -c not given.
</para>
<para>
If the session is set to never expire, either with -x or -c, then a
client id must be provided.
</para>
</listitem>
</varlistentry>