Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hz2018tv opened this issue Apr 26, 2020 · 1 comment
Open

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

hz2018tv opened this issue Apr 26, 2020 · 1 comment

Comments

@hz2018tv
Copy link

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
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants