-
Notifications
You must be signed in to change notification settings - Fork 1.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
When connect() is called, it uses localhost and not the host specified in the options object #1579
Comments
the options object looks like this in the console. |
I think you using wrong protocol value, it's should be "wss" or "ws". |
Try using 127.0.0.1 I triednti connect yo localhost and just problems, but with 127.0.0.1 no problem |
You should define both |
MQTT 5.0.0 BETA is now available! Try it out and give us feedback: |
This is an automated message to let you know that this issue has If this issue is still important, you can simply comment with a Thank you for your contribution. |
This issue was automatically closed due to inactivity. |
Hi, I'm running MQTT.js on my dev machine in a react component and have been connecting to my local mosquitto broker without a problem using { host: localhost }. When I try to connect to my HiveMQ broker I get this error:
ws.js?725c:109 WebSocket connection to 'ws://localhost:8884/' failed:
these are my options passed in to the connect function
I don't understand why the client tries to connect to ws://localhost
The text was updated successfully, but these errors were encountered: