File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ function MqttClient (streamBuilder, options) {
270
270
debug ( 'MqttClient :: options.keepalive' , options . keepalive )
271
271
debug ( 'MqttClient :: options.reconnectPeriod' , options . reconnectPeriod )
272
272
debug ( 'MqttClient :: options.rejectUnauthorized' , options . rejectUnauthorized )
273
- debug ( 'MqttClient :: options.properties.topicAliasMaximum' , options . properties . topicAliasMaximum )
273
+ debug ( 'MqttClient :: options.properties.topicAliasMaximum' , options . properties ? options . properties . topicAliasMaximum : undefined )
274
274
275
275
this . options . clientId = ( typeof options . clientId === 'string' ) ? options . clientId : defaultId ( )
276
276
Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ describe('MQTT 5.0', function () {
20
20
host : 'localhost' ,
21
21
port : ports . PORTAND103 ,
22
22
protocolVersion : 5 ,
23
- topicAliasMaximum : 3
23
+ properties : {
24
+ topicAliasMaximum : 3
25
+ }
24
26
}
25
27
const client = mqtt . connect ( opts )
26
28
let publishCount = 0
@@ -468,7 +470,9 @@ describe('MQTT 5.0', function () {
468
470
host : 'localhost' ,
469
471
port : ports . PORTAND103 ,
470
472
protocolVersion : 5 ,
471
- topicAliasMaximum : 3
473
+ properties : {
474
+ topicAliasMaximum : 3
475
+ }
472
476
}
473
477
const client = mqtt . connect ( opts )
474
478
const server103 = new MqttServer ( function ( serverClient ) {
@@ -502,7 +506,9 @@ describe('MQTT 5.0', function () {
502
506
host : 'localhost' ,
503
507
port : ports . PORTAND103 ,
504
508
protocolVersion : 5 ,
505
- topicAliasMaximum : 3
509
+ properties : {
510
+ topicAliasMaximum : 3
511
+ }
506
512
}
507
513
const client = mqtt . connect ( opts )
508
514
const server103 = new MqttServer ( function ( serverClient ) {
@@ -536,7 +542,9 @@ describe('MQTT 5.0', function () {
536
542
host : 'localhost' ,
537
543
port : ports . PORTAND103 ,
538
544
protocolVersion : 5 ,
539
- topicAliasMaximum : 3
545
+ properties : {
546
+ topicAliasMaximum : 3
547
+ }
540
548
}
541
549
const client = mqtt . connect ( opts )
542
550
const server103 = new MqttServer ( function ( serverClient ) {
You can’t perform that action at this time.
0 commit comments