-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Mosquitto websockets not work with paho clients #1228
Comments
libwebsockets 2.4 has proved to be the most stable version in my experience. Could you share your broker config? |
Here it is, the only changes I made from the default were |
Could you try connecting to test.mosquitto.org port 8080? This is a websockets listener and has many people connecting to it. If that fails for you, then it is the client that is at fault. |
I actually fixed it, my browser was blocking external scripts from running on browser pages. |
Great to hear, I'll close this report then. |
Hi,
I am trying to get some paho clients to work with a mosquitto server running on ubuntu 18.02. I've confirmed that the websocket is open on the desired port (both through netstat and logs). I'm running version 1.5.8 built with libwebsockets version 1.4 (I tried with the most recent libwebsockets version but that didn't work either). I keep getting Socket error: undefined on the paho js utility when trying to connect. Any advice on helping me narrow down the issue here?
Thanks!
The text was updated successfully, but these errors were encountered: