func (pkt *PublishPacket) Message() *Message {
	return &Message{
		Topic:  pkt.Topic,
		QoS:    pkt.header.QoS,
		Data:   pkt.Data,
		Retain: pkt.header.Retain,
	}
}
// Message returns the Message that this Publish packets transports.
Message returns the Message that this Publish packets transports.
// Message returns the Message that this Publish packets transports .
func (pkt *PublishPacket) Message() *Message {
	return &Message{
		Topic:  pkt.Topic,
		QoS:    pkt.header.QoS,
		Data:   pkt.Data,
		Retain: pkt.header.Retain,
	}
}
func ( pkt * PublishPacket ) Message ( ) * Message { return & Message { Topic : pkt . Topic , QoS : pkt . header . QoS , Data : pkt . Data , Retain : pkt . header . Retain , } }
Message returns the Message that this Publish packets transports.
Message returns the Message that this Publish packets transports .