Skip to content

Commit

Permalink
Merge pull request mqttjs#730 from zarej/master
Browse files Browse the repository at this point in the history
Updated tls client example
  • Loading branch information
mcollina authored Dec 6, 2017
2 parents c4d90ab + 2c29c25 commit 402d336
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/tls client/mqttclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ var options = {
cert: CERT,
rejectUnauthorized: true,
// The CA list will be used to determine if server is authorized
ca: TRUSTED_CA_LIST
ca: TRUSTED_CA_LIST,
protocol: 'ssl'
}

var client = mqtt.connect(options)
Expand Down

0 comments on commit 402d336

Please sign in to comment.