Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Apr 1, 2025

This PR defers publishing attempts until signal is connected.
There's a 15s timeout between publishing attempt until signal connection is connected.

Previous behaviour was that publishing on a room that's not connected would simply fail.

This change allows for patterns where device acquisition can happen in parallel to room connection, e.g.

await Promise.all([room.connect(...), room.localParticipant.enableMicrophoneAndCamera()]);

@changeset-bot
Copy link

changeset-bot bot commented Apr 1, 2025

🦋 Changeset detected

Latest commit: ca046cd

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 Minor

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 bcherry and davidzhao April 1, 2025 13:24
@github-actions
Copy link
Contributor

github-actions bot commented Apr 1, 2025

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 91.02 KB (+0.19% 🔺)
dist/livekit-client.umd.js 98.7 KB (+0.17% 🔺)

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

lgtm

@lukasIO lukasIO merged commit 1a5a966 into main Apr 8, 2025
6 checks passed
@lukasIO lukasIO deleted the lukas/defer-publishing-until-connected branch April 8, 2025 18:54
@github-actions github-actions bot mentioned this pull request Apr 8, 2025
svajunas-budrys pushed a commit to svajunas-budrys/client-sdk-js that referenced this pull request Jun 17, 2025
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.

4 participants