Skip to content

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Nov 21, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 21, 2025

🦋 Changeset detected

Latest commit: 6af2ac1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 21, 2025

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 86.93 KB (+2.21% 🔺)
dist/livekit-client.umd.js 95.56 KB (+2.03% 🔺)

if (reconnectResult.isErr()) {
return err(reconnectResult.error);
return err(
new SignalReconnectError(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one of the errors was caused by this method returning a ConnectionError for some reason the return type on the resumeConnection method isn't being type checked here it seems.

This led to the reconnect flow triggering a "full reconnect" instead of a "resume" as "resumes" can only happen for SignalReconnectErrors

self.emit(EngineEvent.SignalRestarted, joinResult.value);

await self.waitForPCReconnected();
yield* await self.waitForPCReconnected();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the other error was caused by self.waitForPCReconnected throwing.

This is the pitfall of doing a gradual adoption of this pattern. Extra care needed for ensuring that if a method is expected to not throw anymore it actually won't

@lukasIO lukasIO requested a review from 1egoman November 21, 2025 14:46
@lukasIO
Copy link
Contributor Author

lukasIO commented Nov 24, 2025

will try to break this up in smaller PRs, starting with #1764

@lukasIO lukasIO marked this pull request as draft November 24, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants