Skip to content

Conversation

@third774
Copy link
Collaborator

No description provided.

@third774 third774 requested a review from Copilot March 28, 2025 16:18
@changeset-bot
Copy link

changeset-bot bot commented Mar 28, 2025

🦋 Changeset detected

Latest commit: deb18f0

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

This PR includes changesets to release 2 packages
Name Type
partytracks Patch
@partyserver/fixture-partytracks 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

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.

Pull Request Overview

This PR updates the peer connection handling to wait for a stable signaling state instead of relying on the connection state. The changes include replacing calls to peerConnectionIsConnected with signalingStateIsStable and renaming the relevant function and event listeners to reflect the new condition.

Comments suppressed due to low confidence (1)

packages/partytracks/src/client/PartyTracks.ts:695

  • Consider providing a descriptive error message when rejecting the promise (e.g., new Error('Timeout waiting for stable signaling state')) to improve debuggability.
rej();

@third774 third774 force-pushed the wait-for-signalingstate-stable-instead-of-connectionstate branch from 4091eb7 to deb18f0 Compare March 28, 2025 16:19
@third774 third774 merged commit cc542ea into main Mar 28, 2025
1 check passed
@third774 third774 deleted the wait-for-signalingstate-stable-instead-of-connectionstate branch March 28, 2025 18:15
@threepointone threepointone mentioned this pull request Mar 28, 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.

1 participant