@stream-io/video-client 0.5.4 → 0.5.6

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,20 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.5.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.5...@stream-io/video-client-0.5.6) (2024-01-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **client:** automatic call join for other participants when someone accepts ([#1247](https://github.com/GetStream/stream-video-js/issues/1247)) ([3559ff2](https://github.com/GetStream/stream-video-js/commit/3559ff209616ccfc4664b24e6a4f35c153be2090)), closes [#1245](https://github.com/GetStream/stream-video-js/issues/1245)
11
+
12
+ ### [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)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **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)
18
+
5
19
  ### [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
20
 
7
21
 
@@ -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();
@@ -8795,7 +8795,8 @@ const watchCallAccepted = (call) => {
8795
8795
  return;
8796
8796
  }
8797
8797
  const { state } = call;
8798
- if (state.callingState === CallingState.RINGING) {
8798
+ if (event.call.created_by.id === call.currentUserId &&
8799
+ state.callingState === CallingState.RINGING) {
8799
8800
  await call.join();
8800
8801
  }
8801
8802
  };
@@ -14232,7 +14233,7 @@ class StreamClient {
14232
14233
  });
14233
14234
  };
14234
14235
  this.getUserAgent = () => {
14235
- const version = "0.5.4" ;
14236
+ const version = "0.5.6" ;
14236
14237
  return (this.userAgent ||
14237
14238
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14238
14239
  };