partyserver@0.5.4
Patch Changes
-
#391
6273c96Thanks @threepointone! - Persist a__ps_namefallback for name-based Durable Objects during initialization. This lets alarm handlers recoverthis.nameeven when firing on a stale on-disk alarm record that was scheduled by an older workerd version that didn't yet persistnameinto the alarm record. See #390. -
#393
5335251Thanks @threepointone! - Complete the WebSocket close handshake when a client initiates the close. Previously, both the hibernatingwebSocketClosehandler and the non-hibernating close-event listener forwarded to useronClosebut never sent a reciprocal Close frame, leaving clients stuck inCLOSINGuntil they timed out and reported1006(abnormal closure). The framework now reciprocates the peer's Close frame in afinallyblock on both paths — required by the Hibernation API on every compat date, and required by the standardaccept()API on compat dates before2026-04-07(where the runtime'sweb_socket_auto_reply_to_closeflag isn't yet active). Callingclose()on an already-closed socket is a silent no-op, so user code that already callsconnection.close(...)fromonCloseis unaffected. Reserved close codes (1005,1006,1015) are normalized to1000before reciprocation so they don't throwInvalidAccessError. See #389.