meteor-mqtt-collection
meteor-mqtt-collection copied to clipboard
TLS? and certificates
Has anyone gotten this working using TLS or client certificates? I can't see any directions to get this working.
Sorry, I don't know how.
looks like it might be in the mqtt.js include. mqtts uses the mqtt over tls, the ws is web sockets and wss is websockets secure.
Connects to the broker specified by the given url and options and returns a Client.
The URL can be on the following protocols: 'mqtt', 'mqtts', 'tcp', 'tls', 'ws', 'wss'. The URL can also be an object as returned by URL.parse(), in that case the two objects are merged, i.e. you can pass a single object with both the URL and the connect options.
You can also specify a servers options with content: [{ host: 'localhost', port: 1883 }, ... ], in that case that array is iterated at every connect.
For all MQTT-related options, see the Client constructor.
http://www.hivemq.com/blog/mqtt-client-library-mqtt-js
Has a great example of using the mqtt library for certificate based connections.