cordova-plugin-mqtt-pahojs
Advanced tools
Comparing version
{ | ||
"name": "cordova-plugin-mqtt-pahojs", | ||
"cordova_name": "MQTT JavaScript Client", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Pure JavaScript MQTT client library. Wrapper for paho.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -131,7 +131,9 @@ var Paho = require('./paho_mqttws31'); | ||
var connectionParams = { | ||
onSuccess: connectionSuccess.bind(this), | ||
onFailure: connectionFailed.bind(this), | ||
userName: this.userName, | ||
password: this.password | ||
onSuccess: connectionSuccess.bind(this), | ||
onFailure: connectionFailed.bind(this) | ||
}; | ||
if (this.userName && this.userName.length) { | ||
connectionParams.userName = this.userName; | ||
connectionParams.password = this.password; | ||
} | ||
if (this.keepAliveInterval) connectionParams.keepAliveInterval = this.keepAliveInterval; | ||
@@ -213,2 +215,2 @@ if (this.timeout) connectionParams.timeout = this.timeout; | ||
module.exports = MQTTClient; | ||
module.exports = MQTTClient; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
2201
0.14%95968
-2.47%