- Web sockets are communication protocol.
- Duplex communication over a singleTCP function withHTTP
- UsesHTTP for initial connection establishment.
- MQTT message are sent throughWebsocket envelope.
- JS file used from this CDN, https://cdnjs.com/libraries/paho-mqtt
- Events handled, onConnectionLost, onMessageArrived, onConnect, onDisconnect, publishMessage
- Subscribe to topic on connection establishment.
- Receiving message from all users for any topic.
- host: test.mosquitto.org
- port: 8080
- Docs → eclipse.org/paho/files/jsdoc/Paho.MQTT.Client.html
Links