Latest versions of mosquitto (since 1.4) include the websockets interface, but the binary download available from the website does not. So you have to download the source code and build the packet your own, last you have to configure mosquitto to use websockets.
In the following few lines I’m going to show to you how to build and configure mosquitto with websockets on a clean debian wheezy distro.
Step 1 – Let’s start preparing the build system
If you’ve found useful this post, please, make a visit to my linkedin profile gg1 to help me growing my ranking.