Skip to content

fix(rtc): consistent connection state handling#655

Merged
lukasIO merged 4 commits intomainfrom
lukas/ensure-connected-emitted
Apr 28, 2026
Merged

fix(rtc): consistent connection state handling#655
lukasIO merged 4 commits intomainfrom
lukas/ensure-connected-emitted

Conversation

@lukasIO
Copy link
Copy Markdown
Contributor

@lukasIO lukasIO commented Apr 28, 2026

the connect callback flipped this.connectionState without explicitly emitting the event.

Moving everything to a update handler that emits the event in case of a change.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 28, 2026

🦋 Changeset detected

Latest commit: 6d609f3

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

This PR includes changesets to release 1 package
Name Type
@livekit/rtc-node 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

@lukasIO lukasIO requested review from 1egoman and toubatbrian April 28, 2026 12:14
devin-ai-integration[bot]

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor

@1egoman 1egoman left a comment

Choose a reason for hiding this comment

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

Makes sense to me, then that event acts as a source of truth!

@lukasIO lukasIO merged commit 7bc4a2e into main Apr 28, 2026
12 checks passed
@lukasIO lukasIO deleted the lukas/ensure-connected-emitted branch April 28, 2026 13:05
@github-actions github-actions Bot mentioned this pull request Apr 28, 2026
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