Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/fix-params-reconnect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"y-partyserver": patch
---

Fix params() not being re-evaluated on WebSocket reconnect

When `params` was passed as a function to `YProvider`, it was only evaluated on the initial connection. On automatic reconnects (e.g. after a network drop), the params function was not called again, causing dynamic values like auth tokens to go stale.

The reconnection path now goes through an overridable `_reconnectWS()` method that `YProvider` uses to re-resolve params before re-establishing the WebSocket.
55 changes: 40 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/hono-party/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"devDependencies": {
"@cloudflare/workers-types": "^4.20260303.0",
"hono": "^4.12.2",
"partyserver": "^0.4.0"
"partyserver": "^0.4.1"
}
}
Loading
Loading