Open remocons opened 4 months ago
It appears that this issue was reported 10 months ago. #1182 However, it is surprising that it has not been resolved yet. Since it is merely an issue with the offset and size when transmitting arraybuffers, it seems to be a simple problem to fix. Most WebSocket examples use only text messages, so they may not recognize problems when communicating with binary data. I am developing an open-source library called iosignal that provides real-time binary communication using WebSockets, so solving this issue is very important. Although it could be replaced with a blob, there are compatibility issues with other standard environments, so I hope for a prompt fix in StackBlitz's webcontainer.
Describe the bug
There is an issue with the binary frame data in the WebSocket messages sent from the server. A 2-byte information starting with 0x82 is added in front of the data.
Hex 00 00 00 00 00 was sent, but hex 0x82 0x05 00 00 00 00 00 was received.
Link to the blitz that caused the error
https://stackblitz.com/~/github.com/remocons/ws-websocket-example?file=ws_server.js
Steps to reproduce
Expected behavior
Parity with Local
Screenshots
stackblitz
codesandbox
replit
3 screen shot: codesandbox vs replit vs stackblitz
Platform
Additional context
No response