You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realized that I passed mqtts://hostname:1234/. If I remove the last /, the connection is successfully finished. However, I think that ignoring path might be convenient. Because existing working code don't need to be changed.
After updating nodejs from 8.5.0 to 8.6.0, MQTTS connection becomes failure.
The reason is the commit nodejs/node@ee157e5a7f
See https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V8.md#8.6.0
Here is the document.
https://nodejs.org/api/tls.html#tls_tls_connect_options_callback
"path Creates unix socket connection to path. If this option is specified, host and port are ignored."
I analyzed the problem. And
https://github.com/mqttjs/MQTT.js/blob/master/lib/connect/index.js#L60 adds
path
member.And the variable
opt
that containspath
member passed to https://github.com/mqttjs/MQTT.js/blob/master/lib/connect/tls.js#L11Hence host and port are ignored.
The text was updated successfully, but these errors were encountered: