Skip to content

Conversation

xianshijing-lk
Copy link
Contributor

So the problem is that the performRpc is a public function, and we never sanity check if users provide values larger than the connection_timeout, which might cause unexpected behavior.

This PR fixes the comment and also clamp the connection response timeout if needed.

Copy link

changeset-bot bot commented Oct 15, 2025

🦋 Changeset detected

Latest commit: 8a3b806

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

Copy link
Contributor

github-actions bot commented Oct 15, 2025

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 83.53 KB (+0.09% 🔺)
dist/livekit-client.umd.js 92.03 KB (+0.01% 🔺)

Copy link
Contributor

@lukasIO lukasIO left a comment

Choose a reason for hiding this comment

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

this makes sense to me!

@lukasIO lukasIO changed the title fix the RPC comment and clam the timeout if the provided value is less than 8s Fix the RPC comment and clamp the timeout if the provided value is less than 8s Oct 15, 2025
xianshijing-lk added a commit to livekit/client-sdk-swift that referenced this pull request Oct 17, 2025
So the problem is that the performRpc is a public function, and we never
sanity check if users provide values larger than the connection_timeout,
which might cause unexpected behavior.

This PR fixes the comment and also clamp the connection response timeout
if needed.

See similar PR on JS SDK:
livekit/client-sdk-js#1694
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