@stream-io/video-client 0.5.4 → 0.5.5

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/dist/index.es.js CHANGED
@@ -8582,7 +8582,7 @@ class StreamSfuClient {
8582
8582
  this.unhealthyTimeoutInMs = this.pingIntervalInMs + 5 * 1000;
8583
8583
  this.close = (code = StreamSfuClient.NORMAL_CLOSURE, reason = 'js-client: requested signal connection close') => {
8584
8584
  this.logger('debug', 'Closing SFU WS connection', code, reason);
8585
- if (this.signalWs.readyState === this.signalWs.CLOSED) {
8585
+ if (this.signalWs.readyState !== this.signalWs.CLOSED) {
8586
8586
  this.signalWs.close(code, reason);
8587
8587
  }
8588
8588
  this.unsubscribeIceTrickle();
@@ -14236,7 +14236,7 @@ class StreamClient {
14236
14236
  });
14237
14237
  };
14238
14238
  this.getUserAgent = () => {
14239
- const version = "0.5.4" ;
14239
+ const version = "0.5.5" ;
14240
14240
  return (this.userAgent ||
14241
14241
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14242
14242
  };