livekit-client 1.15.9 → 1.15.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/livekit-client.e2ee.worker.js.map +1 -1
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +5 -2
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/api/SignalClient.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/errors.d.ts +2 -1
- package/dist/src/room/errors.d.ts.map +1 -1
- package/dist/ts4.2/src/room/errors.d.ts +2 -1
- package/package.json +1 -1
- package/src/api/SignalClient.ts +6 -1
- package/src/room/RTCEngine.ts +3 -0
- package/src/room/errors.ts +1 -0
@@ -10614,7 +10614,7 @@ function getMatch(exp, ua) {
|
|
10614
10614
|
return match && match.length >= id && match[id] || '';
|
10615
10615
|
}
|
10616
10616
|
|
10617
|
-
var version$1 = "1.15.
|
10617
|
+
var version$1 = "1.15.10";
|
10618
10618
|
|
10619
10619
|
const version = version$1;
|
10620
10620
|
const protocolVersion = 11;
|
@@ -15005,7 +15005,7 @@ class SignalClient {
|
|
15005
15005
|
shouldProcessMessage = true;
|
15006
15006
|
}
|
15007
15007
|
} else if (this.isEstablishingConnection && resp.message.case === 'leave') {
|
15008
|
-
reject(new ConnectionError('Received leave request while trying to (re)connect'));
|
15008
|
+
reject(new ConnectionError('Received leave request while trying to (re)connect', 4 /* ConnectionErrorReason.LeaveRequest */));
|
15009
15009
|
} else if (!opts.reconnect) {
|
15010
15010
|
// non-reconnect case, should receive join response first
|
15011
15011
|
reject(new ConnectionError("did not receive join response, got ".concat((_d = resp.message) === null || _d === void 0 ? void 0 : _d.case, " instead")));
|
@@ -17781,6 +17781,9 @@ class RTCEngine extends eventsExports.EventEmitter {
|
|
17781
17781
|
if (error instanceof ConnectionError && error.reason === 0 /* ConnectionErrorReason.NotAllowed */) {
|
17782
17782
|
throw new UnexpectedConnectionState('could not reconnect, token might be expired');
|
17783
17783
|
}
|
17784
|
+
if (error instanceof ConnectionError && error.reason === 4 /* ConnectionErrorReason.LeaveRequest */) {
|
17785
|
+
throw error;
|
17786
|
+
}
|
17784
17787
|
throw new SignalReconnectError(message);
|
17785
17788
|
}
|
17786
17789
|
this.emit(EngineEvent.SignalResumed);
|