You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(devframe,hub): republish remote-dock WS endpoint once it resolves
Port the second half of vitejs/devtools#520: a remote iframe dock
registered before the standalone WebSocket transport finishes binding
(the common `initHub` sequence — devframes, and their docks, install
before an async side-car/shared-server port resolves) was projected
without a connection descriptor, since `wsEndpoint` wasn't set yet.
Nothing re-registered that dock once the port resolved, so it kept a
stale/empty connection URL for the life of the process.
`DevframeInternalContext` now exposes `setWsEndpoint`/`onWsEndpointChange`
so subscribers learn when the endpoint changes instead of reading a
plain field once at registration time. The hub context subscribes and
re-projects every dock into `devframe:docks` shared state whenever the
endpoint resolves (or is torn down).
#171 already covers the atomic-bind half of #520.
Co-authored-by: webfansplz <webfansplz@gmail.com>
Refs: vitejs/devtools#520, vitejs/devtools#517
0 commit comments