@resolveio/client-lib-core 15.1.3 → 15.1.4

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.
@@ -246,6 +246,10 @@ class SocketService {
246
246
  clearTimeout(this.timeout);
247
247
  }
248
248
  this.timeout = null;
249
+ this.ws.removeEventListener('open', this.onOpenHandler);
250
+ this.ws.removeEventListener('close', this.onCloseHandler);
251
+ this.ws.removeEventListener('message', this.onMessageHandler);
252
+ this.ws.removeEventListener('error', this.onErrorHandler);
249
253
  this.ws = null;
250
254
  this.readyState = WebSocket.CLOSED;
251
255
  this.readyState$.next(this.readyState);