Certainly! Here’s the revised response:
Hello @village_idiot,
Welcome to the HiveMQ Community Forum. We’re delighted to see your interest in MQTT and HiveMQ Cloud.
You are correct; the error you encountered is due to the client not being connected.
To resolve this issue, please use the following code to establish a successful connection to HiveMQ Cloud: For more details, please refer to this post.
var MQTT_CLIENT = new Paho.MQTT.Client("wss://[hivemq cloud cluster url]:8884/mqtt", "your client id");
We hope this helps. If you have any further questions, please feel free to ask.
Best regards,
Sheetal from HiveMQ Team