Skip to content

Conversation

amgleitman
Copy link
Member

@amgleitman amgleitman commented Mar 16, 2023

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

This brings facebook#36471 to react-native-macos.

Changelog

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

Test Plan

Validated the WebSocket test page with Charles proxy settings in place and ensured that Charles could pick them up.

Summary:
Pull Request resolved: facebook#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.

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

Pull Request resolved: facebook#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
@amgleitman amgleitman marked this pull request as ready for review March 18, 2023 00:04
@amgleitman amgleitman requested a review from a team as a code owner March 18, 2023 00:04
@microsoft-github-policy-service microsoft-github-policy-service bot enabled auto-merge (squash) March 18, 2023 00:04
@microsoft-github-policy-service microsoft-github-policy-service bot merged commit 90bf99c into microsoft:main Mar 18, 2023
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.

2 participants