Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
MqttCrystal::Packet::Subscribe
Inherits
MqttCrystal::Packet
/
Reference
/
Object
Constructors
new
(id :
UInt16
= 0_u16, topic :
String
= "pub/test", qos :
UInt8
= 1_u8, flags :
Array
(
Bool
) = [false, true, false, false], body_length :
UInt64
= 0_u64)
Source
Instance methods
encode_body
Source
parse_body
(buffer :
Array
(
UInt8
))
Source
qos
Source
qos=
(qos :
UInt8
)
Source
topic
Source
topic=
(topic :
String
)
Source
validate_flags
Source