Mosquitto MQTT over WebSocket?

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


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:// 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/ · GitHub