mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 22:12:20 +00:00
LibWeb: Make WebSocket#send support typed arrays, Blob and DataView
Required by jigsawpuzzles.io, which particularly uses typed arrays.
This commit is contained in:
parent
1b6492d0fb
commit
8addcd237c
Notes:
sideshowbarker
2024-07-17 06:51:40 +09:00
Author: https://github.com/Lubrsi
Commit: 8addcd237c
Pull-request: https://github.com/SerenityOS/serenity/pull/18445
3 changed files with 23 additions and 8 deletions
|
@ -25,9 +25,5 @@ interface WebSocket : EventTarget {
|
|||
|
||||
attribute EventHandler onmessage;
|
||||
attribute DOMString binaryType;
|
||||
undefined send(USVString data);
|
||||
// FIXME: Support other kinds of send() calls
|
||||
// undefined send(Blob data);
|
||||
// undefined send(ArrayBuffer data);
|
||||
// undefined send(ArrayBufferView data);
|
||||
undefined send((BufferSource or Blob or USVString) data);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue