This is a web page example showing how to use MQTT websockets on Stackhero with Mosquitto server, using the Mosquitto service or the Node-RED service (which includes a Mosquitto server).
This example is designed to run with a Stackhero Mosquitto service. You'll more informations about Stackhero here:
To make it works, define url
, username
and password
in the file src/index.html
, then open it in your browser.
You'll get more information on https://www.stackhero.io/en/services/Mosquitto/documentations