Skip to content

Derive WebSocket scheme and port from dev server URL for React DevTools#55894

Closed
cipolleschi wants to merge 1 commit intofacebook:mainfrom
cipolleschi:export-D95043354
Closed

Derive WebSocket scheme and port from dev server URL for React DevTools#55894
cipolleschi wants to merge 1 commit intofacebook:mainfrom
cipolleschi:export-D95043354

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

Summary:

Summary:

Derive the WebSocket scheme (ws/wss) and port from the dev server URL in
setUpReactDevTools.js so React DevTools connections work correctly when the
dev server is accessed over HTTPS.

The Android OkHttpClientProvider and WebSocketModule changes from the
original ATOD patch are intentionally omitted because these are production
modules that cannot depend on the dev-only DevSupportHttpClient module
due to Buck module boundaries.

Changelog:

[GENERAL][CHANGED] - Derive WebSocket scheme and port from dev server URL for React DevTools connections, supporting HTTPS dev servers

Test Plan:

Validated that the JS change correctly derives ws/wss scheme and port from the
dev server URL, falling back to ws://host:8097 for local development.

Facebook:

Partially applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+004+atod-websocket.patch
(Android OkHttpClientProvider and WebSocketModule changes omitted — they create
an invalid Buck dependency from production modules to dev-only modules)

Differential Revision: D95043354

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 3, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 3, 2026

@cipolleschi has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95043354.

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Mar 4, 2026
…ls (facebook#55894)

Summary:

## Summary:

Derive the WebSocket scheme (ws/wss) and port from the dev server URL in
`setUpReactDevTools.js` so React DevTools connections work correctly when the
dev server is accessed over HTTPS.

The Android `OkHttpClientProvider` and `WebSocketModule` changes from the
original ATOD patch are intentionally omitted because these are production
modules that cannot depend on the dev-only `DevSupportHttpClient` module
due to Buck module boundaries.

## Changelog:

[GENERAL][CHANGED] - Derive WebSocket scheme and port from dev server URL for React DevTools connections, supporting HTTPS dev servers

## Test Plan:

Validated that the JS change correctly derives ws/wss scheme and port from the
dev server URL, falling back to ws://host:8097 for local development.

## Facebook:
Partially applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+004+atod-websocket.patch
(Android OkHttpClientProvider and WebSocketModule changes omitted — they create
an invalid Buck dependency from production modules to dev-only modules)

Reviewed By: cortinico

Differential Revision: D95043354
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Mar 4, 2026
…ls (facebook#55894)

Summary:

## Summary:

Derive the WebSocket scheme (ws/wss) and port from the dev server URL in
`setUpReactDevTools.js` so React DevTools connections work correctly when the
dev server is accessed over HTTPS.

The Android `OkHttpClientProvider` and `WebSocketModule` changes from the
original ATOD patch are intentionally omitted because these are production
modules that cannot depend on the dev-only `DevSupportHttpClient` module
due to Buck module boundaries.

## Changelog:

[GENERAL][CHANGED] - Derive WebSocket scheme and port from dev server URL for React DevTools connections, supporting HTTPS dev servers

## Test Plan:

Validated that the JS change correctly derives ws/wss scheme and port from the
dev server URL, falling back to ws://host:8097 for local development.

## Facebook:
Partially applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+004+atod-websocket.patch
(Android OkHttpClientProvider and WebSocketModule changes omitted — they create
an invalid Buck dependency from production modules to dev-only modules)

Reviewed By: cortinico

Differential Revision: D95043354
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Mar 4, 2026
…ls (facebook#55894)

Summary:

## Summary:

Derive the WebSocket scheme (ws/wss) and port from the dev server URL in
`setUpReactDevTools.js` so React DevTools connections work correctly when the
dev server is accessed over HTTPS.

The Android `OkHttpClientProvider` and `WebSocketModule` changes from the
original ATOD patch are intentionally omitted because these are production
modules that cannot depend on the dev-only `DevSupportHttpClient` module
due to Buck module boundaries.

## Changelog:

[GENERAL][CHANGED] - Derive WebSocket scheme and port from dev server URL for React DevTools connections, supporting HTTPS dev servers

## Test Plan:

Validated that the JS change correctly derives ws/wss scheme and port from the
dev server URL, falling back to ws://host:8097 for local development.

## Facebook:
Partially applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+004+atod-websocket.patch
(Android OkHttpClientProvider and WebSocketModule changes omitted — they create
an invalid Buck dependency from production modules to dev-only modules)

Reviewed By: cortinico

Differential Revision: D95043354
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Mar 4, 2026
…ls (facebook#55894)

Summary:

## Summary:

Derive the WebSocket scheme (ws/wss) and port from the dev server URL in
`setUpReactDevTools.js` so React DevTools connections work correctly when the
dev server is accessed over HTTPS.

The Android `OkHttpClientProvider` and `WebSocketModule` changes from the
original ATOD patch are intentionally omitted because these are production
modules that cannot depend on the dev-only `DevSupportHttpClient` module
due to Buck module boundaries.

## Changelog:

[GENERAL][CHANGED] - Derive WebSocket scheme and port from dev server URL for React DevTools connections, supporting HTTPS dev servers

## Test Plan:

Validated that the JS change correctly derives ws/wss scheme and port from the
dev server URL, falling back to ws://host:8097 for local development.

## Facebook:
Partially applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+004+atod-websocket.patch
(Android OkHttpClientProvider and WebSocketModule changes omitted — they create
an invalid Buck dependency from production modules to dev-only modules)

Reviewed By: cortinico

Differential Revision: D95043354
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Mar 4, 2026
…ls (facebook#55894)

Summary:
Pull Request resolved: facebook#55894

## Summary:

Derive the WebSocket scheme (ws/wss) and port from the dev server URL in
`setUpReactDevTools.js` so React DevTools connections work correctly when the
dev server is accessed over HTTPS.

The Android `OkHttpClientProvider` and `WebSocketModule` changes from the
original ATOD patch are intentionally omitted because these are production
modules that cannot depend on the dev-only `DevSupportHttpClient` module
due to Buck module boundaries.

## Changelog:

[GENERAL][CHANGED] - Derive WebSocket scheme and port from dev server URL for React DevTools connections, supporting HTTPS dev servers

## Test Plan:

Validated that the JS change correctly derives ws/wss scheme and port from the
dev server URL, falling back to ws://host:8097 for local development.

## Facebook:
Partially applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+004+atod-websocket.patch
(Android OkHttpClientProvider and WebSocketModule changes omitted — they create
an invalid Buck dependency from production modules to dev-only modules)

Reviewed By: cortinico

Differential Revision: D95043354
…ls (facebook#55894)

Summary:
Pull Request resolved: facebook#55894

## Summary:

Derive the WebSocket scheme (ws/wss) and port from the dev server URL in
`setUpReactDevTools.js` so React DevTools connections work correctly when the
dev server is accessed over HTTPS.

The Android `OkHttpClientProvider` and `WebSocketModule` changes from the
original ATOD patch are intentionally omitted because these are production
modules that cannot depend on the dev-only `DevSupportHttpClient` module
due to Buck module boundaries.

## Changelog:

[GENERAL][CHANGED] - Derive WebSocket scheme and port from dev server URL for React DevTools connections, supporting HTTPS dev servers

## Test Plan:

Validated that the JS change correctly derives ws/wss scheme and port from the
dev server URL, falling back to ws://host:8097 for local development.

## Facebook:
Partially applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+004+atod-websocket.patch
(Android OkHttpClientProvider and WebSocketModule changes omitted — they create
an invalid Buck dependency from production modules to dev-only modules)

Reviewed By: cortinico

Differential Revision: D95043354
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Mar 4, 2026
…ls (facebook#55894)

Summary:

## Summary:

Derive the WebSocket scheme (ws/wss) and port from the dev server URL in
`setUpReactDevTools.js` so React DevTools connections work correctly when the
dev server is accessed over HTTPS.

The Android `OkHttpClientProvider` and `WebSocketModule` changes from the
original ATOD patch are intentionally omitted because these are production
modules that cannot depend on the dev-only `DevSupportHttpClient` module
due to Buck module boundaries.

## Changelog:

[GENERAL][CHANGED] - Derive WebSocket scheme and port from dev server URL for React DevTools connections, supporting HTTPS dev servers

## Test Plan:

Validated that the JS change correctly derives ws/wss scheme and port from the
dev server URL, falling back to ws://host:8097 for local development.

## Facebook:
Partially applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+004+atod-websocket.patch
(Android OkHttpClientProvider and WebSocketModule changes omitted — they create
an invalid Buck dependency from production modules to dev-only modules)

Reviewed By: cortinico

Differential Revision: D95043354
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Mar 4, 2026
…ls (facebook#55894)

Summary:

## Summary:

Derive the WebSocket scheme (ws/wss) and port from the dev server URL in
`setUpReactDevTools.js` so React DevTools connections work correctly when the
dev server is accessed over HTTPS.

The Android `OkHttpClientProvider` and `WebSocketModule` changes from the
original ATOD patch are intentionally omitted because these are production
modules that cannot depend on the dev-only `DevSupportHttpClient` module
due to Buck module boundaries.

## Changelog:

[GENERAL][CHANGED] - Derive WebSocket scheme and port from dev server URL for React DevTools connections, supporting HTTPS dev servers

## Test Plan:

Validated that the JS change correctly derives ws/wss scheme and port from the
dev server URL, falling back to ws://host:8097 for local development.

## Facebook:
Partially applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+004+atod-websocket.patch
(Android OkHttpClientProvider and WebSocketModule changes omitted — they create
an invalid Buck dependency from production modules to dev-only modules)

Reviewed By: cortinico

Differential Revision: D95043354
@meta-codesync meta-codesync bot closed this in ca41737 Mar 4, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cipolleschi in ca41737

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Mar 4, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 4, 2026

This pull request has been merged in ca41737.

zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
…ls (facebook#55894)

Summary:
Pull Request resolved: facebook#55894

## Summary:

Derive the WebSocket scheme (ws/wss) and port from the dev server URL in
`setUpReactDevTools.js` so React DevTools connections work correctly when the
dev server is accessed over HTTPS.

The Android `OkHttpClientProvider` and `WebSocketModule` changes from the
original ATOD patch are intentionally omitted because these are production
modules that cannot depend on the dev-only `DevSupportHttpClient` module
due to Buck module boundaries.

## Changelog:

[GENERAL][CHANGED] - Derive WebSocket scheme and port from dev server URL for React DevTools connections, supporting HTTPS dev servers

## Test Plan:

Validated that the JS change correctly derives ws/wss scheme and port from the
dev server URL, falling back to ws://host:8097 for local development.

## Facebook:
Partially applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+004+atod-websocket.patch
(Android OkHttpClientProvider and WebSocketModule changes omitted — they create
an invalid Buck dependency from production modules to dev-only modules)

Reviewed By: cortinico

Differential Revision: D95043354

fbshipit-source-id: 29e8c55106b645f29ca5240de66d5842027b89ac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants