struct

MQTT::Protocol::Publish

Inherits MQTT::Protocol::Packet < Struct < Value < Object

Constants

TYPE = 3_u8

Constructors

new(topic : String, payload : Bytes, packet_id : UInt16 | Nil, dup : Bool, qos : UInt8, retain : Bool)
Source

Class methods

from_io(io : MQTT::Protocol::IO, flags : Flags, remaining_length : UInt32)
Source

Instance methods

dup?
Source
packet_id
Source
payload
Source
remaining_length
Source
retain?
Source
to_io(io)
Source
topic
Source