@stream-io/video-client 0.7.5 → 0.7.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 +7 -0
- package/dist/index.browser.es.js +7 -1
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +7 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7 -1
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +1 -0
- package/package.json +1 -1
- package/src/Call.ts +6 -0
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.7.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.7.5...@stream-io/video-client-0.7.6) (2024-04-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **client:** ignore SFU WS status code when the user initiates leaving a call ([#1323](https://github.com/GetStream/stream-video-js/issues/1323)) ([774882b](https://github.com/GetStream/stream-video-js/commit/774882b9e2bb3f3dc72401278c174e1a0f597ce1))
|
|
11
|
+
|
|
5
12
|
### [0.7.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.7.4...@stream-io/video-client-0.7.5) (2024-04-23)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -11487,6 +11487,7 @@ class Call {
|
|
|
11487
11487
|
this.trackSubscriptionsSubject = new BehaviorSubject({ type: DebounceType.MEDIUM, data: [] });
|
|
11488
11488
|
this.reconnectAttempts = 0;
|
|
11489
11489
|
this.maxReconnectAttempts = 10;
|
|
11490
|
+
this.isLeaving = false;
|
|
11490
11491
|
/**
|
|
11491
11492
|
* A list hooks/functions to invoke when the call is left.
|
|
11492
11493
|
* A typical use case is to clean up some global event handlers.
|
|
@@ -11545,6 +11546,7 @@ class Call {
|
|
|
11545
11546
|
if (callingState === CallingState.JOINING) {
|
|
11546
11547
|
await this.assertCallJoined();
|
|
11547
11548
|
}
|
|
11549
|
+
this.isLeaving = true;
|
|
11548
11550
|
if (this.ringing) {
|
|
11549
11551
|
// I'm the one who started the call, so I should cancel it.
|
|
11550
11552
|
const hasOtherParticipants = this.state.remoteParticipants.length > 0;
|
|
@@ -11834,6 +11836,10 @@ class Call {
|
|
|
11834
11836
|
// unregister the "goAway" handler, as we won't need it anymore for this connection.
|
|
11835
11837
|
// the upcoming re-join will register a new handler anyway
|
|
11836
11838
|
unregisterGoAway();
|
|
11839
|
+
// when the user has initiated "call.leave()" operation, we shouldn't
|
|
11840
|
+
// care for the WS close code and we shouldn't ever attempt to reconnect
|
|
11841
|
+
if (this.isLeaving)
|
|
11842
|
+
return;
|
|
11837
11843
|
// do nothing if the connection was closed on purpose
|
|
11838
11844
|
if (e.code === StreamSfuClient.NORMAL_CLOSURE)
|
|
11839
11845
|
return;
|
|
@@ -14474,7 +14480,7 @@ class StreamClient {
|
|
|
14474
14480
|
});
|
|
14475
14481
|
};
|
|
14476
14482
|
this.getUserAgent = () => {
|
|
14477
|
-
const version = "0.7.
|
|
14483
|
+
const version = "0.7.6" ;
|
|
14478
14484
|
return (this.userAgent ||
|
|
14479
14485
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
14480
14486
|
};
|