Mosquitto MQTT over WebSocket?

Can the Mosquitto MQTT addon be configured to use WebSockets so I can connect my browser using MQTT over Websockets ??

Thanks

Great question, I was searching for the same information. Have you tried to connect to the server address using ws://mymqttaddress:port using command line tools for mosquito? I have tried and it doesn’t appear to work ws://192.168.1.1:1883 for example, there is no defined websocket.

Mosquitto broker version: 6.0.1

1 Like

HA will support for WebSockets from HA 2022.12.0, see Add WebSockets as transport for MQTT by jbouwh · Pull Request #24940 · home-assistant/home-assistant.io · GitHub