@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 +7 -0
- package/dist/index.browser.es.js +2 -2
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/StreamSfuClient.ts +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8602,7 +8602,7 @@ class StreamSfuClient {
|
|
|
8602
8602
|
this.unhealthyTimeoutInMs = this.pingIntervalInMs + 5 * 1000;
|
|
8603
8603
|
this.close = (code = StreamSfuClient.NORMAL_CLOSURE, reason = 'js-client: requested signal connection close') => {
|
|
8604
8604
|
this.logger('debug', 'Closing SFU WS connection', code, reason);
|
|
8605
|
-
if (this.signalWs.readyState
|
|
8605
|
+
if (this.signalWs.readyState !== this.signalWs.CLOSED) {
|
|
8606
8606
|
this.signalWs.close(code, reason);
|
|
8607
8607
|
}
|
|
8608
8608
|
this.unsubscribeIceTrickle();
|
|
@@ -14256,7 +14256,7 @@ class StreamClient {
|
|
|
14256
14256
|
});
|
|
14257
14257
|
};
|
|
14258
14258
|
this.getUserAgent = () => {
|
|
14259
|
-
const version = "0.5.
|
|
14259
|
+
const version = "0.5.5" ;
|
|
14260
14260
|
return (this.userAgent ||
|
|
14261
14261
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
14262
14262
|
};
|