Skip to content

IDE 预览时 WebSocket 没有正确的构造 ArrayBuffer 类型的下行消息 #73

@leeyeh

Description

@leeyeh

相关信息

  • 问题类型
    IDE
  • 操作系统
    Mac OS 10.15
  • IDE版本
    1.9.0

问题描述

预期

WebSocket 服务端交互的时候设置 WebSocket 的 binaryType 为 'arraybuffer' 时,其 onmessage 返回的 data 应该为 ArrayBuffer 类型。

实际效果

data 为 Blob 类型。此外在真机(1060)上没有这个问题。

复现步骤

Send an ArrayBuffer to 'wss://echo.websocket.org'. You can see the echoed message is a Blob.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working已知悉研发同学已收到该需求/问题,等待下一步是否/如何解决

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions