sjsakib / mqtt-vs-socketio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mqtt-vs-socketio

How to run this?

Run these commands

# install node dependencies
npm i

# run the mosquitto image
docker-compose up -d

# run the backend 
node server.js

Now open the client.html file in a browser and play around. Don't forget to subscribe to get the messages. Make the message a big string, adjust connection speed in the devtools or make it offline while messages are being published and see how they handle it.

About


Languages

Language:HTML 83.9%Language:JavaScript 16.1%