@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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.5.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.4...@stream-io/video-client-0.5.5) (2024-01-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **sfu:** ensure SFU WebSocket is closed ([#1242](https://github.com/GetStream/stream-video-js/issues/1242)) ([3f99206](https://github.com/GetStream/stream-video-js/commit/3f9920616c26770911ebbc54d50dc50f4ca219e2)), closes [#1212](https://github.com/GetStream/stream-video-js/issues/1212)
11
+
5
12
  ### [0.5.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.3...@stream-io/video-client-0.5.4) (2024-01-16)
6
13
 
7
14
 
@@ -8579,7 +8579,7 @@ class StreamSfuClient {
8579
8579
  this.unhealthyTimeoutInMs = this.pingIntervalInMs + 5 * 1000;
8580
8580
  this.close = (code = StreamSfuClient.NORMAL_CLOSURE, reason = 'js-client: requested signal connection close') => {
8581
8581
  this.logger('debug', 'Closing SFU WS connection', code, reason);
8582
- if (this.signalWs.readyState === this.signalWs.CLOSED) {
8582
+ if (this.signalWs.readyState !== this.signalWs.CLOSED) {
8583
8583
  this.signalWs.close(code, reason);
8584
8584
  }
8585
8585
  this.unsubscribeIceTrickle();
@@ -14232,7 +14232,7 @@ class StreamClient {
14232
14232
  });
14233
14233
  };
14234
14234
  this.getUserAgent = () => {
14235
- const version = "0.5.4" ;
14235
+ const version = "0.5.5" ;
14236
14236
  return (this.userAgent ||
14237
14237
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14238
14238
  };