I have a Mosquitto broker up and running on my Windows machine. I don't remember if I installed it with Web Sockets support (Cause I didn't knew what that was, or if I needed it). But seeing now my requirement is to use JavaScript (Paho) to connect to MQTT, I want to know how to enable Web Socket support for my existing MQTT broker.
I tried editing mosquitto.conf
file by adding these lines to the file
listener 9001
protocol websockets
but doesn't seems to work. I am attaching an image that might provide a better picture:
I am not very sure of commands either but they seem to work with default port 1883.
So the question is: How do I make it work?