This application contains demo of MQTT that is based on node.
Client :- this folder is for client of MQTT
Server :- this folder is for server of MQTT
Run npm install command in both the folder and then do npm start. You will find that connection is established between server and client and if any of this close the connection the other will get notified.