Reference: https://raw.githubusercontent.com/w3hacker/paho.mqtt.javascript/master/mqttws31.js try to modify as original version: https://cdnjs.cloudflare.com/ajax ...
Using Domoticz API JSON from PHP to read states of Domoticz devices by IDX Using Eclipse Paho MQTT Javascript library with WEBSOCKETS to get sensor readings realtime ...