Why is WebSocket.binaryType undefined by default?
Description
After creating a WebSocket instance, its binaryType is undefined. This is different from the web spec
Each WebSocket object has an associated binary type, which is a BinaryType. Initially it must be "blob".
Version
0.64.3
Output of npx react-native info
info Fetching system and libraries information... System: OS: Windows 10 10.0.22621 CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz Memory: 2.56 GB / 15.92 GB Binaries: Node: 16.13.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - ~\scoop\apps\yarn\current\Yarn\bin\yarn.CMD npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: AllowDevelopmentWithoutDevLicense: Enabled AllowAllTrustedApps: Enabled Versions: 10.0.17763.0, 10.0.19041.0 IDEs: Android Studio: Version 2021.1.0.0 AI-211.7628.21.2111.8139111 Visual Studio: 16.9.32901.84 (Visual Studio Enterprise 2019), 17.3.32901.215 (Visual Studio Enterprise 2022) Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found info React Native v0.70.3 is now available (your project is running on v0.64.3). info Changelog: https://github.com/facebook/react-native/releases/tag/v0.70.3. info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.64.3. info To upgrade, run "react-native upgrade".
Steps to reproduce
- new WebSocket(...)
- check its
binaryTypeproperty
Snack, code example, screenshot, or link to a repository
https://snack.expo.dev/@jeremymeng/laughing-popsicle