hivemq / hivemq-mqtt-client

HiveMQ MQTT Client is an MQTT 5.0 and MQTT 3.1.1 compatible and feature-rich high-performance Java client library with different API flavours and backpressure support
https://hivemq.github.io/hivemq-mqtt-client/
Apache License 2.0
824 stars 153 forks source link

Can not connect to HiveMQ WebSocket Client #634

Open jumpingliu opened 1 week ago

jumpingliu commented 1 week ago

🐛 Bug Report

🔬 How To Reproduce

Steps to reproduce the behavior:

  1. I set up an application and add the broker address as tcp://broker.mqttdashboard.com:1883 and returns error as the connnection fails

Code sample

Environment

Where are you running/using this client?

What version of this client are you using?

JVM version?

Operating System?

Which MQTT protocol version is being used?

Which MQTT broker (name and version)?

Screenshots

📈 Expected behavior

📎 Additional context

pglombardo commented 1 week ago

Hi @jumpingliu - could you post sample code, the error and stack trace?

If you are connecting via websockets, the port you specified is incorrect:

Screenshot 2024-06-27 at 14 48 10