Description
React Native version:
System:
OS: Linux 4.18 Ubuntu 18.10 (Cosmic Cuttlefish)
CPU: (4) x64 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
Memory: 536.00 MB / 5.72 GB
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 10.15.0 - ~/.nvm/versions/node/v10.15.0/bin/node
npm: 6.10.2 - ~/.nvm/versions/node/v10.15.0/bin/npm
SDKs:
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 23.0.1, 23.0.3, 25.0.0, 26.0.1, 27.0.3, 28.0.3, 29.0.2
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.5 => 0.60.5
npmGlobalPackages:
react-native-cli: 2.0.1
Steps To Reproduce
- Connect to a websocket server from an RN app.
- Send binary data from the server to the app.
Describe what you expected to happen:
WebSocket onmessage
being called with an instance of ArrayBuffer
containing the data from the server.
In fact an empty ArrayBuffer
is received. When the app sends binary data to the server, the data is transmitted just fine.