func (msg *Message) Equals(other *Message) bool {
	return msg.Topic == other.Topic &&
		msg.QoS == other.QoS &&
		msg.Retain == other.Retain &&
		bytes.Compare(msg.Data, other.Data) == 0
}
// Equals checks if both message are the same.
Equals checks if both message are the same.
// Equals checks if both message are the same .
func (msg *Message) Equals(other *Message) bool {
	return msg.Topic == other.Topic &&
		msg.QoS == other.QoS &&
		msg.Retain == other.Retain &&
		bytes.Compare(msg.Data, other.Data) == 0
}
func ( msg * Message ) Equals ( other * Message ) bool { return msg . Topic == other . Topic && msg . QoS == other . QoS && msg . Retain == other . Retain && bytes . Compare ( msg . Data , other . Data ) == 0 }
Equals checks if both message are the same.
Equals checks if both message are the same .