Skip to content

Conversation

@threepointone
Copy link
Collaborator

Introduces an enabled option to both usePartySocket and useWebSocket hooks, allowing conditional control over socket connection state. Updates internal logic to handle connection, disconnection, and reconnection based on the enabled prop. Adds comprehensive tests to verify the new behavior.

Introduces an `enabled` option to both `usePartySocket` and `useWebSocket` hooks, allowing conditional control over socket connection state. Updates internal logic to handle connection, disconnection, and reconnection based on the `enabled` prop. Adds comprehensive tests to verify the new behavior.
@changeset-bot
Copy link

changeset-bot bot commented Jan 30, 2026

🦋 Changeset detected

Latest commit: 4d78985

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

This PR includes changesets to release 1 package
Name Type
partysocket 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

@threepointone threepointone merged commit 2a2928b into main Jan 30, 2026
4 of 5 checks passed
@threepointone threepointone deleted the use-partysocket-disabled branch January 30, 2026 04:00
@github-actions github-actions bot mentioned this pull request Jan 30, 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.

1 participant