RetainHandling

Controls when the broker sends retained messages for a subscription (§3.8.3.1).

When subscribing to a topic that has a retained message, this option controls whether and when that retained message is delivered to the subscribing client.

Entries

Link copied to clipboard

Send retained messages at the time of the subscribe (default).

Link copied to clipboard

Send retained messages only if the subscription does not already exist.

Link copied to clipboard

Do not send retained messages at the time of the subscribe.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard
val value: Int

The numeric option value (0, 1, or 2) as encoded in the SUBSCRIBE packet.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.