livekit-client 1.15.9 → 1.15.10

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.
@@ -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.9";
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);