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

Skip to content

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Apr 3, 2025

builds on top of the findings in #1467 and extends it by extracting things into its own util module to make it testable

@changeset-bot
Copy link

changeset-bot bot commented Apr 3, 2025

⚠️ No Changeset found

Latest commit: 763f2b9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2025

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 90.89 KB (+0.04% 🔺)
dist/livekit-client.umd.js 98.58 KB (+0.03% 🔺)

@lukasIO lukasIO requested a review from Copilot April 7, 2025 13:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • package.json: Language not supported
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (3)

src/api/utils.ts:15

  • [nitpick] Consider renaming the parameter 'rtcWsUrl' to 'rtcUrl' to better reflect that its value is converted to an HTTP URL within the function.
export function createValidateUrl(rtcWsUrl: string) {

src/api/SignalClient.ts:264

  • Ensure that 'params' is an instance of URLSearchParams as expected by createRtcUrl; passing a different type may result in incorrect URL construction.
const rtcUrl = createRtcUrl(url, params);

src/api/SignalClient.ts:307

  • Confirm that createRtcUrl returns a URL with the appropriate WebSocket protocol (ws or wss) required for establishing a connection; any protocol alteration might lead to connection failures.
this.ws = new WebSocket(rtcUrl);

@lukasIO lukasIO changed the title Add unit tests for url construction Improve connection URL handling and add unit tests Apr 7, 2025
@lukasIO lukasIO merged commit aa3c36b into main Apr 8, 2025
5 checks passed
@lukasIO lukasIO deleted the lukas/url-construct branch April 8, 2025 05:21
@github-actions github-actions bot mentioned this pull request Apr 7, 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.

3 participants