Chat with any tab connected to the same broker and mqtt topic.

This example connects the page to, a public, test MQTT broker service. And subscribes to topic cotonic/chat. Chat messages which are published on this topic will be displayed in the chat box.

You can open another tab and chat with yourself if nobody is online. Or examine the code