1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +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:
Luke Wilde 2023-04-20 19:15:21 +01:00 committed by Andreas Kling
parent 1b6492d0fb
commit 8addcd237c
3 changed files with 23 additions and 8 deletions

View file

@ -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);
};