njouanin / hbmqtt

MQTT client/broker using Python asynchronous I/O
MIT License
795 stars 188 forks source link

paho mqttws31.min.js is not connecting with ssl on #215

Open hz2018tv opened 4 years ago

hz2018tv commented 4 years ago

it connects fine without ssl turned on both broker and sub sides. but with ssl turned on both side, getting "opening handshake canceled". debugger inside chrome shows it stops at if (this.connectOptions.mqttVersion < 4) { this.socket = new WebSocket(wsurl, ["mqttv3.1"]); } else { this.socket = new WebSocket(wsurl, ["mqtt"]); } I am not sure why the same code works with ssl off, if it is a version issue. so I guess it is not.

anyone succeeded in using paho mqtt3.1.min.js with latest hbmqtt broker? pls help.

nijisakai commented 4 years ago

https://github.com/eclipse/paho.mqtt.javascript/issues/187#issuecomment-594450347