MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.
http://mitsuruog.github.io/what-mqtt/
git clone https://github.com/karan6190/MQTT-WebSockets
cd what-mqtt
npm install
npm run start
Check it. http://localhost:3000
MIT