You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

cordova-plugin-mqtt-pahojs

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-mqtt-pahojs - npm Package Compare versions

Comparing version

to
1.5.3

{
"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);