Bug fixed: some variables which name should be tls_client where renamed to conn. Improvement on tls: If you want to use rejectUnauthorized: true parameter for an ssl/tls connection you can now supply a CA certs array to be considered as trusted.
Bug fixed: some variables which name should be tls_client where renamed to conn.
Improvement on tls: If you want to use rejectUnauthorized: true parameter for an ssl/tls connection you can now supply a CA certs array to be considered as trusted.

e.g.
var options = {
  keyPath: KEY,
  certPath: CERT,
  rejectUnauthorized : true,
  ca: ['./crt.ca.cg.pem'] //list of cert paths
};

RangerMauve/MQTT.js,mcanthony/MQTT.js,itavy/MQTT.js,authere/MQTT.js,jaambee/MQTT.js,yunba/MQTT.js,AdySan/MQTT.js,wesley1001/MQTT.js,jdiamond/MQTT.js,bqevin/MQTT.js,1248/MQTT.js