-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
What is the issue with the WebSockets Standard?
Consider code such as the following:
const bytes = new Uint8Array([0x01]);
webSocket.send(bytes);
bytes[0] = 0x02;Is 0x01 sent, or 0x02?
What about
const bytes = new Uint8Array([0x01]);
webSocket.send(bytes);
bytes.buffer.transfer();?
Probably the desired answer is that we snapshot the bytes the moment they are fed to the send() method? If so, the spec should use https://webidl.spec.whatwg.org/#dfn-get-buffer-source-copy to be explicit.
ricea
Metadata
Metadata
Assignees
Labels
No labels