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

WSS connection failed on chrome but connected on Firefox, Safari and other browsers #239

Open
danishsuri123 opened this issue Sep 8, 2021 · 6 comments

Comments

@danishsuri123
Copy link

I am using paho mqtt client javascript for connecting my wss mqtt broker I added in connect option "useSSL: true" but it showing in console that "Websocket connection wss://{host}/ws failed:" in chrome else the same code running on other browsers it connected.

I shall be very great full to everyone for this help.

Everyone's help shall be appreciated

@imankur
Copy link

imankur commented Oct 25, 2021

@danishsuri123 Were you able to fix this? Apparently, for me, this is happening on iOS/iPAD OS 15.

@hossein-nahali
Copy link

I have exactly the same problem

@Snorker8406
Copy link

same here :(

@trunganh5795
Copy link

I have the same problem. I tried with Firefox and Chrome (Incognito window), and it works well. However, it fails to connect in Chrome normal mode.

@joysfera
Copy link

I have just got this issue as well (Chrome 116). No idea why. Incognito window works well. This is crazy.

@joysfera
Copy link

Oh, Clear Site Data in Google Chrome fixed the issue!
F12 -> Application -> Storage -> Clear Site Data (button)

At first I have tried deleting local storage manually but that didn't help. So glad this global clear function helped.

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

6 participants