testtestvar mqttScript,
done = false;
mqttScript = document.createElement('script'),
mqttScript.onload = function () {
done = true;
console.log('MQTT is ready');
};
document.head.appendChild(mqttScript);
mqttScript.src = 'https://unpkg.com/mqtt/dist/mqtt.min.js';
return function () {return done; }brokermoquitto (ws)=ws://test.mosquitto.org:8080/mqtt
mosca (ws)=ws://test.mosca.io/
hivemq (ws)=ws://broker.hivemq.com:8000
mosca-localhost (ws)=ws://localhost:3000
codimeo MQTT ={
ws=ws://mqtt.codimeo.com:15675/ws
wss=wss://mqtt.codimeo.com:15676/ws
}oneventmessagecallbacksubscribetopicunsubscribetopicpublishtopicmessageis_connectedlog_clientlog_parent_spriteendforceoneventsubscribeunsubscribepublishis_connectedlog_clientlog_parent_spriteendmessageand the main body of the classmqtt-clientEnd MQTT Client with force True or False. Default : Falsemqtt-clientmessagetopicmqtt-clientmqtt clienttopicmqtt-clientjsonreturn JSON.parse(json)"end":"" }mqtt-clientevent#1#2#3your comment line here