@amityco/ts-sdk-react-native 7.27.1-a54028e.0 → 7.27.1-db799433.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"mqtt.d.ts","sourceRoot":"","sources":["../../../src/core/transports/mqtt.ts"],"names":[],"mappings":"AAEA,OAAa,EAAuB,cAAc,EAAsB,UAAU,EAAE,MAAM,MAAM,CAAC;AAiCjG,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,cAAc,CAuBjB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,gBA+MtD,CAAC"}
1
+ {"version":3,"file":"mqtt.d.ts","sourceRoot":"","sources":["../../../src/core/transports/mqtt.ts"],"names":[],"mappings":"AAEA,OAAa,EAAuB,cAAc,EAAsB,UAAU,EAAE,MAAM,MAAM,CAAC;AAiCjG,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,cAAc,CAuBjB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,gBAkNtD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=mqtt.connackTimeout.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mqtt.connackTimeout.test.d.ts","sourceRoot":"","sources":["../../../../src/core/transports/tests/mqtt.connackTimeout.test.ts"],"names":[],"mappings":""}
package/dist/index.cjs.js CHANGED
@@ -2551,6 +2551,9 @@ const createMqttTransport = (endpoint) => {
2551
2551
  if (mqttClient) {
2552
2552
  updateConnectionState('disconnecting');
2553
2553
  mqttClient.removeAllListeners();
2554
+ mqttClient.on('error', error => {
2555
+ console.warn('MQTT discarded connection error:', error === null || error === void 0 ? void 0 : error.message);
2556
+ });
2554
2557
  mqttClient.end(true);
2555
2558
  }
2556
2559
  mqttClient = mqtt__default["default"].connect(endpoint, getMqttOptions({
package/dist/index.esm.js CHANGED
@@ -2516,6 +2516,9 @@ const createMqttTransport = (endpoint) => {
2516
2516
  if (mqttClient) {
2517
2517
  updateConnectionState('disconnecting');
2518
2518
  mqttClient.removeAllListeners();
2519
+ mqttClient.on('error', error => {
2520
+ console.warn('MQTT discarded connection error:', error === null || error === void 0 ? void 0 : error.message);
2521
+ });
2519
2522
  mqttClient.end(true);
2520
2523
  }
2521
2524
  mqttClient = mqtt.connect(endpoint, getMqttOptions({