Skip to content

Commit cbd1630

Browse files
authored
Merge pull request mqttjs#843 from num-lock/tls-client-example-fix
Fixed invalid protocol definition in TLS client example.
2 parents 51bb9d5 + 8a4814e commit cbd1630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tls client/mqttclient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var options = {
3232
rejectUnauthorized: true,
3333
// The CA list will be used to determine if server is authorized
3434
ca: TRUSTED_CA_LIST,
35-
protocol: 'ssl'
35+
protocol: 'mqtts'
3636
}
3737

3838
var client = mqtt.connect(options)

0 commit comments

Comments
 (0)