Mqtt Message
constructor(topic: String, payload: ByteString, qos: QoS = QoS.AT_MOST_ONCE, retain: Boolean = false, properties: PublishProperties = PublishProperties())
constructor(topic: String, payload: ByteArray, qos: QoS = QoS.AT_MOST_ONCE, retain: Boolean = false, properties: PublishProperties = PublishProperties())
Convenience constructor accepting raw bytes.
The payload is copied into an immutable ByteString, so mutations to the original array after construction have no effect on this message.