@wiotp/sdk 0.8.1-alpha.1 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wiotp/sdk",
3
- "version": "0.8.1-alpha.1",
3
+ "version": "0.8.1",
4
4
  "description": "SDK for developing device, gateway, and application clients for IBM Watson IoT Platform",
5
5
  "main": "dist/index.js",
6
6
  "files": [
package/src/BaseConfig.js CHANGED
@@ -134,7 +134,7 @@ export default class BaseConfig{
134
134
  }
135
135
 
136
136
  // For encrypted ports
137
- if (this.options.mqtt.port == 433 || this.options.mqtt.port == 8883) {
137
+ if (this.options.mqtt.port == 443 || this.options.mqtt.port == 8883) {
138
138
  if (this.options.mqtt.transport == "tcp") {
139
139
  return "ssl://" + server;
140
140
  }
@@ -155,4 +155,4 @@ export default class BaseConfig{
155
155
  throw new Error("Sub class must implement parseConfigFile()");
156
156
  }
157
157
 
158
- };
158
+ };