Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
A WebSocket is very similar to a TCP socket, the key difference is that it allows a web browser to open a bi-directional communication pipe to a server. With this in place it is now possible to provide first class MQTT support for Web applications running in a web browser.
There are a couple of options
- IBM's MQ 7.5 comes with websockets support
- The HiveMQ MQTT broker has native websockets support.
- Mosca node.js-based broker has native websockets support.
The v3.1 protocol can flow as is but there are a couple of other WebSocket features that need to be specified to provide inter-operability. These are discussed on the Eclipse Paho wiki and both the IBM and Mosquitto implementations have collaborated on these. HiveMQ also implements these behaviours.
Typically a webserver will require an additional WebSockets module such as pywebsocket or lighthttpd's mod_websocket to do forwarding to an existing broker.