webitel-sdk 0.1.85 → 0.1.86

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.
@@ -27246,6 +27246,9 @@
27246
27246
  }
27247
27247
  _this.socket.on('message', _this.onMessage.bind(_this));
27248
27248
  _this.socket.on('close', function (code) {
27249
+ if (_this.pingTimer) {
27250
+ clearTimeout(_this.pingTimer);
27251
+ }
27249
27252
  _this.log.error('socket close code: ', code);
27250
27253
  _this.eventHandler.off('*');
27251
27254
  if (code !== 1000) {