class

MqttCrystal::Packet::Unsubscribe

Inherits MqttCrystal::Packet / Reference / Object

Constructors

new(id : UInt16 = 0_u16, topics : Array(String) = [] of String, flags : Array(Bool) = [false, true, false, false], body_length : UInt64 = 0_u64)
Source

Instance methods

encode_body
Source
id=(id : UInt16)
Source
parse_body(buffer : Array(UInt8))
Source
topics
Source
topics=(topics : Array(String))
Source
validate_flags
Source