How to use the createSecureClient function from mqtt

Find comprehensive JavaScript mqtt.createSecureClient code examples handpicked from public code repositorys.

46
47
48
49
50
51
52
53
54
55
    certPath: crypto.getUserSSLCert(),
    ca: calist
  };
  console.log("Connecting securely to MQTT broker at " + serviceSpec.properties.secureaddress + ":" +
    serviceSpec.properties.secureport);
  this.client = mqtt.createSecureClient(serviceSpec.properties.secureport, serviceSpec.properties.secureaddress,
    opts);
} else {
  this.client = mqtt.createClient(serviceSpec.port, serviceSpec.address);
}
fork icon10
star icon0
watch icon13