MQTT Click Counter (HiveMQ Public Broker)

Uses secure WebSockets to broker.hivemq.com:8884 (public broker). 2
Counter lives in a retained topic; every click publishes a new retained count.
idle
clientId:
Count topic (retained)
Event topic
no updates yet
Tip: open this page in two tabs; clicks in one tab update the other via the retained count topic.
Log
QoS: 0 | Retain: count=yes
mqtt.js auto-reconnects by default; you’ll see reconnect events in the log. 3