mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
Keep installed active-client status listeners bound to `this.activeClient` rather than `switchRequestVersion` so a pending or failed speculative upgrade never mutes disconnect events on the active socket. Recheck that the target connection still exists and matches before and after disposing the old client so removing or editing an endpoint during handshake aborts the upgrade. Track the last online `connectionEpoch` in `HostRuntimeStore` so make-before-break upgrades that stay `online` still trigger reconnect cache invalidation and history sync generation bumps.