class

MQTT::V5::Connack

Inherits MQTT::V5::ReasonCoded / MQTT::Header / BinData / Reference / Object

MQTT-3.2

Constants

AFTER_DESERIALIZE = [] of Nil

MQTT-3.2

ALLOWED_PROPERTIES = [PropertyId::SessionExpiryInterval, PropertyId::ReceiveMaximum, PropertyId::MaximumQoS, PropertyId::RetainAvailable, PropertyId::MaximumPacketSize, PropertyId::AssignedClientIdentifier, PropertyId::TopicAliasMaximum, PropertyId::ReasonString, PropertyId::UserProperty, PropertyId::WildcardSubscriptionAvailable, PropertyId::SubscriptionIdentifiersAvailable, PropertyId::SharedSubscriptionAvailable, PropertyId::ServerKeepAlive, PropertyId::ResponseInformation, PropertyId::ServerReference, PropertyId::AuthenticationMethod, PropertyId::AuthenticationData]
BEFORE_SERIALIZE = [] of Nil

MQTT-3.2

ENDIAN = ["big"]

MQTT-3.2

KLASS_NAME = [MQTT::V5::Connack]

MQTT-3.2

PARTS = [{type: "bitfield", name: 4, cls: MQTT::V5::Connack, onlyif: nil, verify: nil, endian: IO::ByteFormat::BigEndian}, {type: "basic", name: raw_reason_code, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "basic", name: properties, cls: MQTT::V5::Properties, onlyif: nil, verify: nil, value: nil}] of Nil

MQTT-3.2

REMAINING = [] of Nil

MQTT-3.2

Class methods

bit_fields

MQTT-3.2

Source

Instance methods

__format__

A group or bit_field captures the endianness at its declaration point, so declaring endian after one would silently leave it system-endian. Fail loudly.

Source
_reserved_
_reserved_=(_reserved_ : UInt8)
assigned_client_identifier

The identifier the broker picked for us, when we sent an empty one

Source
authentication_data
Source
authentication_method
Source
calculate_length
Source
maximum_packet_size
Source
maximum_qos
Source
properties
properties=(properties : Properties)
raw_reason_code
raw_reason_code=(raw_reason_code : UInt8)
reason_string
Source
receive_maximum

How many QoS > 0 messages the broker will accept in flight

Source
response_information
Source
retain_available?
Source
server_keep_alive

A broker may impose its own keep alive, overriding what we asked for

Source
server_reference
Source
session_expiry_interval
Source
session_present
Source
session_present=(session_present : UInt8)
session_present=(value : Bool)
Source
shared_subscription_available?
Source
subscription_identifier_available?
Source
success!
Source
topic_alias_maximum
Source
user_properties
Source
validate!
Source
wildcard_subscription_available?
Source