Skip to content

Conversation

@philikon
Copy link
Contributor

@philikon philikon commented Apr 7, 2016

This brings the same functionality that's already present on iOS, introduced in #4483, to Android: convert binary payloads to base64 strings and send them to JS land that way, where they'll be turned into an ArrayBuffer.

Test Plan: Used test server from #6889 (in --binary mode) to send some binary data to the Android UIExplorer example (also from #6889). Verified it's received correctly as ArrayBuffer.

…rayBuffer)

This brings the same functionality that's already present on iOS, introduced in facebook#4483, to Android: convert binary payloads to base64 strings and send them to JS land that way, where they'll be turned into an ArrayBuffer.
@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @satya164, @aprock and @christopherdro to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Apr 7, 2016
@philikon
Copy link
Contributor Author

philikon commented Apr 7, 2016

Also @mkonicek if past changes to this file are any indicator.

@christopherdro
Copy link
Contributor

@philikon Looks like there is another PR open addressing this. #6327

Is there any differences here?

@philikon
Copy link
Contributor Author

philikon commented Apr 8, 2016

@christopherdro #6327 is for sending binary data, while this is about receiving it. Support for receiving was already added to iOS in #4483 so all we really need here is to add a few lines to Android to make it work there too. This PR here adds those few lines.

@philikon philikon changed the title [WebSocket][android][ios parity] Add support for binary type data (ArrayBuffer) [WebSocket][android][ios parity] Add support for receiving binary type data (ArrayBuffer) Apr 13, 2016
@philikon
Copy link
Contributor Author

Ping?

FWIW, I added a Test Plan that's easily reproducible with the UIExplorer example that I provided in #6889.

@mkonicek
Copy link
Contributor

Amazing, thank you @philikon!

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to Phabricator to review.

@philikon
Copy link
Contributor Author

What's blocking this from getting merged at this point?

@christopherdro
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to Phabricator to review.

@christopherdro
Copy link
Contributor

christopherdro commented Apr 18, 2016

@philikon The bot gets hung up sometimes. Pinging again.

@ghost ghost closed this in 20cae51 Apr 18, 2016
@philikon
Copy link
Contributor Author

Thanks everyone!

@philikon philikon deleted the android_ws_binary branch April 19, 2016 00:20
ptmt pushed a commit to ptmt/react-native that referenced this pull request May 9, 2016
Summary:This brings the same functionality that's already present on iOS, introduced in facebook#4483, to Android: convert binary payloads to base64 strings and send them to JS land that way, where they'll be turned into an ArrayBuffer.

**Test Plan:** Used test server from facebook#6889 (in `--binary` mode) to send some binary data to the Android UIExplorer example (also from facebook#6889). Verified it's received correctly as `ArrayBuffer`.
Closes facebook#6868

Differential Revision: D3184797

Pulled By: mkonicek

fb-gh-sync-id: e78c640c43b3e41a75ddba79acc04e5eaab5667d
fbshipit-source-id: e78c640c43b3e41a75ddba79acc04e5eaab5667d
zebulgar pushed a commit to nightingale/react-native that referenced this pull request Jun 18, 2016
Summary:This brings the same functionality that's already present on iOS, introduced in facebook#4483, to Android: convert binary payloads to base64 strings and send them to JS land that way, where they'll be turned into an ArrayBuffer.

**Test Plan:** Used test server from facebook#6889 (in `--binary` mode) to send some binary data to the Android UIExplorer example (also from facebook#6889). Verified it's received correctly as `ArrayBuffer`.
Closes facebook#6868

Differential Revision: D3184797

Pulled By: mkonicek

fb-gh-sync-id: e78c640c43b3e41a75ddba79acc04e5eaab5667d
fbshipit-source-id: e78c640c43b3e41a75ddba79acc04e5eaab5667d
bubblesunyum pushed a commit to iodine/react-native that referenced this pull request Aug 23, 2016
Summary:This brings the same functionality that's already present on iOS, introduced in facebook#4483, to Android: convert binary payloads to base64 strings and send them to JS land that way, where they'll be turned into an ArrayBuffer.

**Test Plan:** Used test server from facebook#6889 (in `--binary` mode) to send some binary data to the Android UIExplorer example (also from facebook#6889). Verified it's received correctly as `ArrayBuffer`.
Closes facebook#6868

Differential Revision: D3184797

Pulled By: mkonicek

fb-gh-sync-id: e78c640c43b3e41a75ddba79acc04e5eaab5667d
fbshipit-source-id: e78c640c43b3e41a75ddba79acc04e5eaab5667d
This pull request was closed.
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants