@livedigital/client 3.34.1 → 3.34.3
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/dist/helpers/common.d.ts +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/engine/index.ts +8 -0
- package/src/helpers/common.ts +2 -2
package/package.json
CHANGED
package/src/engine/index.ts
CHANGED
|
@@ -181,6 +181,7 @@ class Engine {
|
|
|
181
181
|
|
|
182
182
|
try {
|
|
183
183
|
this.state.isJoined = false;
|
|
184
|
+
this.network.peersLoaded = false;
|
|
184
185
|
this.state.reset();
|
|
185
186
|
this.myPeer.delete();
|
|
186
187
|
this.webRtcIssueDetector?.stopWatchingNewPeerConnections();
|
|
@@ -697,6 +698,13 @@ class Engine {
|
|
|
697
698
|
let continiousNumberOfLoadbalancerSuccessufulChecks = 0;
|
|
698
699
|
|
|
699
700
|
const checkInterval = setInterval(async () => {
|
|
701
|
+
if (this.isReleasing || !this.state.isJoined) {
|
|
702
|
+
clearInterval(checkInterval);
|
|
703
|
+
this.#logger.info('Stop waiting for seamless reconnect due to call end', {
|
|
704
|
+
case: 'waitForReconnectOrTriggerRejoinEventIfAppropriate',
|
|
705
|
+
});
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
700
708
|
try {
|
|
701
709
|
if (!this.#isConnectionLost) {
|
|
702
710
|
// connection restored
|
package/src/helpers/common.ts
CHANGED
|
@@ -72,8 +72,8 @@ export function isAnalyticsActive(flag?: boolean): boolean {
|
|
|
72
72
|
return flag ?? true;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export function randomString(
|
|
76
|
-
return crypto.randomBytes(
|
|
75
|
+
export function randomString() {
|
|
76
|
+
return crypto.randomBytes(10).toString('hex');
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export function markSDKInstance(mark: string) {
|