Skip to content

Receive binary data over WebSocket (RN 0.60.5) #26488

Closed
@RobinBobin

Description

@RobinBobin

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

  1. Connect to a websocket server from an RN app.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPlatform: LinuxBuilding on Linux.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions