@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.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
|
|
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.
|
|
14239
|
+
const version = "0.5.5" ;
|
|
14240
14240
|
return (this.userAgent ||
|
|
14241
14241
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
14242
14242
|
};
|