SessionExpiryInterval property
Gets or sets the session expiry interval. Read/write. Double.
Syntax
connOption
.SessionExpiryInterval
where
connOption
- is an MQTTConnectOption object created by the MQTTFactory object's method CreateConnectOption
.Default value
If this property is omitted, it will use its default value, which is 0 seconds.
This is a property that a client sets during the CONNECT packet stage, specified in seconds. This property indicates the duration that the broker retains the client's session information. If this interval is set to zero, or if the CONNECT packet does not specify an expiry value, the session data is promptly deleted from the broker as soon as the client's network connection ends.
Provide Feedback