cordova-plugin-mqtt-pahojs
Advanced tools
{ | ||
"name": "cordova-plugin-mqtt-pahojs", | ||
"cordova_name": "MQTT JavaScript Client", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Pure JavaScript MQTT client library. Wrapper for paho.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -43,2 +43,6 @@ var Paho = require('./paho_mqttws31'); | ||
MQTTClient.prototype._setupConnection = function() { | ||
if (this.connection) { | ||
this.connection.onConnectionLost = null; | ||
this.connection.onMessageArrived = null; | ||
} | ||
this.connection = new Paho.MQTT.Client(this.uri, this.clientId); | ||
@@ -45,0 +49,0 @@ this.connection.onConnectionLost = this._connectionLost.bind(this); |
96595
0.14%2209
0.18%