Commit 05a3851
Apply custom dev support headers to iOS WebSocket connections
Summary:
## Summary:
Apply custom HTTP headers from `RCTDevSupportHttpHeaders` to all WebSocket
connections created by `RCTWebSocketModule`. This ensures that auth tokens and
other custom headers configured via the dev support header API are included in
WebSocket upgrade requests.
## Changelog:
[IOS][CHANGED] - Apply custom dev support HTTP headers to WebSocket connections
## Test Plan:
Verified that the `RCTDevSupportHttpHeaders` singleton is called to apply
headers to the mutable URL request before creating the SRWebSocket instance.
## Facebook:
Applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+005+atod-websocket-ios.patch
Differential Revision: D950378761 parent 8a5c3b4 commit 05a3851
File tree
1 file changed
+3
-0
lines changed- packages/react-native/React/CoreModules
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
0 commit comments