Commit cd33062
Derive WebSocket scheme and port from dev server URL for React DevTools (#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: D950433541 parent 4a3080b commit cd33062
1 file changed
+23
-6
lines changedLines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
155 | | - | |
156 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
157 | 174 | | |
158 | 175 | | |
159 | | - | |
| 176 | + | |
160 | 177 | | |
161 | 178 | | |
162 | 179 | | |
| |||
0 commit comments