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.

  1. If necessary, connect to your broker as described in Test a HiveMQ Cloud Broker Connection.

  2. On Connect, switch to Test your connection.

  3. 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.

  4. To subscribe to additional topics, type a wildcard character or topic name in Topic Name, then click Subscribe.

  5. In Send Message, send a test message:

    1. In Message, type a test value such as test message.

    2. In Topic, type a topic name such as test topic.

    3. In QoS, accept the default level 0 or select a higher level.

    4. Click Send Message.

  6. In Messages, confirm that your test topic shows your test message with the selected QoS level.