Skip to content

feat(unrouteWebSocket): add missing API to match routeWebSocket#41176

Open
dcrousso wants to merge 2 commits into
microsoft:mainfrom
dcrousso:feat-unrouteWebSocket
Open

feat(unrouteWebSocket): add missing API to match routeWebSocket#41176
dcrousso wants to merge 2 commits into
microsoft:mainfrom
dcrousso:feat-unrouteWebSocket

Conversation

@dcrousso
Copy link
Copy Markdown
Contributor

@dcrousso dcrousso commented Jun 5, 2026

this mirrors the pair of route and unroute/unrouteAll

also change routeWebSocket to return a Disposable so that it can leverage using (which again mirrors route)

note that unrouteWebSocket/unrouteAllWebSockets only affects new WebSocket opened after the API call (i.e. already opened WebSocket will continue to be routed as before), which is the same behavior route/routeWebSocket/unroute/unrouteAll/etc. for in-flight requests

fixes #41158

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

Test results for "tests 1"

4 flaky ⚠️ [chromium-library] › library/video.spec.ts:647 › screencast › should capture full viewport `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/popup.spec.ts:261 › should not throw when click closes popup `@chromium-ubuntu-22.04-node22`
⚠️ [chromium-library] › library/video.spec.ts:719 › screencast › should work with video+trace `@chromium-ubuntu-22.04-node22`
⚠️ [firefox-page] › page/page-emulate-media.spec.ts:144 › should keep reduced motion and color emulation after reload `@firefox-ubuntu-22.04-node20`

39523 passed, 775 skipped


Merge workflow run.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2026

Test results for "MCP"

7266 passed, 1119 skipped


Merge workflow run.

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.

[Feature]: unroute WebSocket

1 participant