5. Client code
1. Connect to the node.js server through soket.io (L:5)
2. Subscribe to some topic(s) (L:10)
3. Listen to any notification for these topics (L:7-9)
6. Node.js code (1/3)
1. include the required modules (L:1-5)
2. Specify the web socket port (L:5)
3. Connect to the MQTT server (L:6)
7. Node.js code (2/3)
1. Listening to a successful socket connection (L:8)
1. Listening to a subscribing request from the client (L:9-13)
1. Filtering the web socket data based on the topics (L:11)
2. Listening to a notify request from the server (L:15-18)
8. Node.js code (3/3)
1. Listening to a new notification from the MQQT server (L:21)
1. Sent these notification through the web socket (L:23-25)
2. Listening to a successful connection with the MQTT server and sent a test
notification every 5 seconds (L:29-33)