func (client *Client) Publish(msg *Message) error {

	if msg.QoS > 0 {
		client.counter++
		if client.counter == 65000 {
			client.counter = 1
		}
	}

	return client.Send(Publish(client.counter, msg))
}
// Publish a new message.
Publish a new message.
// Publish a new message .
func (client *Client) Publish(msg *Message) error {
	if msg.QoS > 0 {
		client.counter++
		if client.counter == 65000 {
			client.counter = 1
		}
	}
	return client.Send(Publish(client.counter, msg))
}
func ( client * Client ) Publish ( msg * Message ) error { if msg . QoS > 0 { client . counter ++ if client . counter == 65000 { client . counter = 1 } } return client . Send ( Publish ( client . counter , msg ) ) }
Publish a new message.
Publish a new message .