Skip to content

fix(ui-server): eliminate duplicate /_hmr proxy to restore WebSocket HMR#9804

Merged
luvkapur merged 5 commits intomasterfrom
fix-proxy-issue
Dec 11, 2025
Merged

fix(ui-server): eliminate duplicate /_hmr proxy to restore WebSocket HMR#9804
luvkapur merged 5 commits intomasterfrom
fix-proxy-issue

Conversation

@luvkapur
Copy link
Member

@luvkapur luvkapur commented Jul 9, 2025

This PR removes the generic /_hmr WebSocket proxy entry from UIServer.getProxy().

Previously,
/_hmr/<envId> matched two ProxyEntrys (catch-all & env-specific) → the same socket was proxied twice, sending a second 101 header → “Invalid frame header / ECONNRESET” in the browser and broken HMR

With this fix,
Each HMR request matches exactly one proxy entry. The connection upgrades once; HMR frames flow without errors.

@luvkapur luvkapur changed the title ix(ui-server): eliminate duplicate /_hmr proxy to restore WebSocket HMR fix(ui-server): eliminate duplicate /_hmr proxy to restore WebSocket HMR Jul 9, 2025
@GiladShoham GiladShoham enabled auto-merge (squash) July 15, 2025 11:34
@luvkapur luvkapur closed this Nov 25, 2025
auto-merge was automatically disabled November 25, 2025 19:59

Pull request was closed

@luvkapur luvkapur reopened this Dec 11, 2025
@luvkapur luvkapur enabled auto-merge (squash) December 11, 2025 20:40
@luvkapur luvkapur merged commit c3732b6 into master Dec 11, 2025
12 checks passed
@luvkapur luvkapur deleted the fix-proxy-issue branch December 11, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants