react-native/React
Adam Gleitman 9ee0e1c78e Use SocketRocket for web socket library (#36471)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36471

The previous native web socket API, `RCTSRWebSocket`, appears to be an older version of the one provided as part of [SocketRocket](https://github.com/facebookincubator/SocketRocket). The latter has several improvements, such as the ability to respect proxy settings, which has been requested by a user of a React Native app.

Everything translates over pretty easily, and considering that SocketRocket is already a dependency of Flipper, there doesn't seem to be much additional cost to swapping out the libraries. If we wanted to make things even slimmer, it may even be possible to make the WebSocket library be optional for release builds.

## Changelog

[IOS] [CHANGED] - Use SocketRocket for web socket library

Pull Request resolved: https://github.com/facebook/react-native/pull/36347

Test Plan:
Validated the following:
* The WebSocket test page in RNTester
* Live reloading

Reviewed By: cortinico

Differential Revision: D43768835

Pulled By: javache

fbshipit-source-id: 11e1ac2700bc92991897c594622e6687339bfcbf
2023-03-15 13:32:59 -07:00
..
AccessibilityResources/en.lproj
Base Fix duplicate [RCTConvert UIUserInterfaceStyle:] 2023-03-14 09:30:07 -07:00
CoreModules Use SocketRocket for web socket library (#36471) 2023-03-15 13:32:59 -07:00
CxxBridge Add performance.reactNativeStartupTiming API 2023-03-02 20:04:42 -08:00
CxxLogUtils
CxxModule fix missing imports and set disable_infer_precompiled_header] [shard:2/3][1/2] 2022-12-08 15:27:25 -08:00
CxxUtils fix missing imports and set disable_infer_precompiled_header] [shard:2/3][1/2] 2022-12-08 15:27:25 -08:00
DevSupport Use SocketRocket for web socket library (#36471) 2023-03-15 13:32:59 -07:00
Fabric Cache NSTextStorage 2023-03-08 08:36:08 -08:00
FBReactNativeSpec Update .podspec license information (#35245) 2022-11-07 09:52:52 -08:00
Inspector Use SocketRocket for web socket library (#36471) 2023-03-15 13:32:59 -07:00
Modules Refactor subclassing of RCTEventEmitter (#35106) 2022-11-08 07:06:07 -08:00
Profiler Add additional Systrace support 2022-09-14 16:29:20 -07:00
Tests Delete preemtive view allocation on iOS 2022-09-09 06:25:58 -07:00
UIUtils
Views Remove assumptions on super's description (#36374) 2023-03-08 07:41:07 -08:00
React-RCTFabric.podspec Update RCTFabric to generate headers in the React folder when using Frameworks 2023-02-20 11:50:10 -08:00
third-party.xcconfig