Skip to content

Commit

Permalink
Non-Zero MessageID when QoS > 0 (#251)
Browse files Browse the repository at this point in the history
* Non-Zero MessageId when QoS > 0

Aligned the MQTT 3.1.1 spec, http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718025

* Prolong waiting time (#252)

Travis CI sometimes is too slow, and is causing aedes broker not respond and fails the 'disconnect if a connect does not arrive in time' test

* Replace istanbul with nyc (#253)

* Replace istanbul with nyc

istanbul is not maintained anymore

* Update .gitignore

* Non-Zero MessageId when QoS > 0

Aligned the MQTT 3.1.1 spec, http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718025
  • Loading branch information
gnought authored and mcollina committed Jul 11, 2019
1 parent c0d5bd5 commit ef99045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/qos-packet.js
Expand Up @@ -11,7 +11,7 @@ function QoSPacket (original, client) {
if (!original.messageId) {
this.messageId = client._nextId
if (client._nextId === 65535) {
client._nextId = 0
client._nextId = 1
} else {
client._nextId++
}
Expand Down

0 comments on commit ef99045

Please sign in to comment.