Skip to content

Commit f513e33

Browse files
authored
Merge pull request #49 from mukeshydv/master
Update constants.js
2 parents 5464662 + dd7f330 commit f513e33

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protocol.propertiesTypes = {
117117
wildcardSubscriptionAvailable: 'byte',
118118
subscriptionIdentifiersAvailable: 'byte',
119119
sharedSubscriptionAvailable: 'byte',
120-
serverKeepAlive: 'int32',
120+
serverKeepAlive: 'int16',
121121
responseInformation: 'string',
122122
serverReference: 'string',
123123
topicAlias: 'int16',

test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ testParseGenerate('connack MQTT5 with properties', {
734734
retain: false,
735735
qos: 0,
736736
dup: false,
737-
length: 89,
737+
length: 87,
738738
sessionPresent: false,
739739
reasonCode: 0,
740740
properties: {
@@ -759,8 +759,8 @@ testParseGenerate('connack MQTT5 with properties', {
759759
authenticationData: Buffer.from([1, 2, 3, 4])
760760
}
761761
}, Buffer.from([
762-
32, 89, 0, 0,
763-
86, // properties length
762+
32, 87, 0, 0,
763+
84, // properties length
764764
17, 0, 0, 4, 210, // sessionExpiryInterval
765765
33, 1, 176, // receiveMaximum
766766
36, 2, // Maximum qos
@@ -773,7 +773,7 @@ testParseGenerate('connack MQTT5 with properties', {
773773
40, 1, // wildcardSubscriptionAvailable
774774
41, 1, // subscriptionIdentifiersAvailable
775775
42, 0, // sharedSubscriptionAvailable
776-
19, 0, 0, 4, 210, // serverKeepAlive
776+
19, 4, 210, // serverKeepAlive
777777
26, 0, 4, 116, 101, 115, 116, // responseInformation
778778
28, 0, 4, 116, 101, 115, 116, // serverReference
779779
21, 0, 4, 116, 101, 115, 116, // authenticationMethod

0 commit comments

Comments
 (0)