partyserver@0.4.0
Minor Changes
-
#360
852e900Thanks @threepointone! - Adduriproperty toConnectionthat captures the original WebSocket upgrade request URLWebSocketPairdoesn't accept a URL parameter, so the originating URL was previously lost after the handshake. Theuriis now persisted in the WebSocket attachment alongsideidandtags, so it survives hibernation. Returnsnullfor connections established before this change.
Patch Changes
-
#358
7172dd1Thanks @threepointone! - Addconfigurable: truetoid,tags, andsocketproperty descriptors increateLazyConnectionto fix Vite HMR compatibilityWhen using PartyServer with Vite's Cloudflare Workers dev mode, HMR reloads recreate the module-scoped
WeakSetused to track wrapped sockets, while the underlying WebSocket instances survive. This causedObject.definePropertiesto throwTypeError: Cannot redefine propertyon properties that were missing theconfigurableflag.