struct MQTT::Client::ReceivedMessage

Defined in:

mqtt-client/message.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(connection : Connection, packet_id : UInt16, topic : String, body : Bytes, qos : UInt8, retain : Bool, dup : Bool) #

[View source]

Instance Method Detail

def ack #

[View source]
def body : Bytes #

[View source]
def dup : Bool #
Description copied from struct Value

Returns a shallow copy of this object.

Because Value is a value type, this method returns self, which already involves a shallow copy of this object because value types are passed by value.


[View source]
def qos : UInt8 #

[View source]
def retain : Bool #

[View source]
def topic : String #

[View source]