class

MqttCrystal::Packet::Connack

Inherits MqttCrystal::Packet / Reference / Object

Constructors

new(session_present : Bool = false, response : MqttCrystal::Packet::ConnackResponse = ConnackResponse::Accepted, flags : Array(Bool) = [false, false, false, false], body_length : UInt64 = 0_u64)

If this is a clean session, @session_present must be false otherwise up to the implementation to decide if the session exists

Source

Instance methods

encode_body
Source
parse_body(buffer : Array(UInt8))
Source
response
Source
session_present
Source
session_present=(session_present : Bool)
Source