MQTT::Client::Message
Inherits Struct / Value / Object
Constructors
new(topic : String, body : Bytes, qos : UInt8, retain : Bool = false, dup : Bool = false)
SourceInstance methods
body
clone
Sourcecopy_with(topic _topic = @topic, body _body = @body, qos _qos = @qos, retain _retain = @retain, dup _dup = @dup)
Sourcedup
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.
qos
retain
topic