cordova-plugin-mqtt-pahojs
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "cordova-plugin-mqtt-pahojs", | ||
"cordova_name": "MQTT JavaScript Client", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Pure JavaScript MQTT client library. Wrapper for paho.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -122,8 +122,8 @@ var Paho = require('./paho_mqttws31'); | ||
function connectionSuccess() { | ||
this._showConnectionStatus('Connected'); | ||
this.emit('connected'); | ||
this.connected = true; | ||
this.reconnectTry = 0; | ||
this.reconnectDelayIdx = null; | ||
this.connected = true; | ||
resolve && resolve(); | ||
this._showConnectionStatus('Connected'); | ||
this.emit('connected'); | ||
}; | ||
@@ -130,0 +130,0 @@ |