mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
18 lines
614 B
XML
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>
|