Test Sub/Pub with the HiveMQ Web Client
After you confirm a successful broker connection, test that a client subscribes to and publishes messages to a topic on the broker. The HiveMQ Platform supports this test through a public WebSocket client on port 8884.
For more information about MQTT over WebSockets, see the HiveMQ MQTT Essentials: MQTT over WebSockets.
-
If necessary, connect to your broker as described in Test a HiveMQ Cloud Broker Connection.
-
On Connect, switch to Test your connection.
-
In Topic Subscriptions, click Subscribe.
The web client subscribes to all topics with Quality of Service level 0 by default. For more information, see Publish/Subscribe Architecture.
-
To subscribe to additional topics, type a wildcard character or topic name in Topic Name, then click Subscribe.
-
In Send Message, send a test message:
-
In Message, type a test value such as
test message. -
In Topic, type a topic name such as
test topic. -
In QoS, accept the default level 0 or select a higher level.
-
Click Send Message.
-
-
In Messages, confirm that your test topic shows your test message with the selected QoS level.