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.
@@ -23880,6 +23880,9 @@ class Client extends EventEmitter {
23880
23880
  }
23881
23881
  this.socket.on('message', this.onMessage.bind(this));
23882
23882
  this.socket.on('close', (code) => {
23883
+ if (this.pingTimer) {
23884
+ clearTimeout(this.pingTimer);
23885
+ }
23883
23886
  this.log.error('socket close code: ', code);
23884
23887
  this.eventHandler.off('*');
23885
23888
  if (code !== 1000) {