Verify a HiveMQ Cloud Broker-WebClient Connection
As soon as your HiveMQ Cloud broker appears Running in Network, you can use the platform to quickly test that the broker accepts a client connection.
HiveMQ Cloud brokers listen on port 8884 and connect to a built-in WebClient over WebSocket.
The test requires that you provide credentials.
You can use the platform to automatically generate temporary credentials for this test if you have not created them already.
Before You Begin
On Connect, in the Network view, verify that your HiveMQ Cloud broker status shows Running.
Steps
-
On Connect, select your HiveMQ Cloud broker.
-
On Broker Details, click Configure.
-
Switch to Test your connection.
-
For a HiveMQ Cloud Serverless broker, select Test your connection.
-
For a HiveMQ Cloud Starter broker, select Troubleshooting, then click Test your connection.
-
-
On Test your connection, test connectivity in one of the following ways:
With autogenerated credentials:
-
In Connection Settings, select Connect with autogenerated credentials.
If the connection succeeds, the HiveMQ Platform displays
The WebClient is connected.The HiveMQ Platform generates and displays temporary credentials.
-
Copy and save the autogenerated credentials.
-
In Autogenerated Credentials, click Close.
With existing credentials:
-
In Connection Settings, select Username.
-
In Username, click an existing credential.
If the connection succeeds, the HiveMQ Platform displays
The WebClient is connected. -
If necessary, click Connect.
-
-
Optionally, click Disconnect.
| Verifying broker connectivity using this WebClient/WebSocket test only confirms the client-broker connection. A successful connection does not fully test communication between clients and a broker. |
Next Steps
Test and confirm that your HiveMQ Cloud broker routes messages. For instructions, see Validate Message Transfer for a HiveMQ Cloud Broker.