1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 07:38:10 +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

@ -58,7 +58,7 @@ public:
void set_binary_type(DeprecatedString const& type) { m_binary_type = type; };
WebIDL::ExceptionOr<void> close(Optional<u16> code, Optional<DeprecatedString> reason);
WebIDL::ExceptionOr<void> send(DeprecatedString const& data);
WebIDL::ExceptionOr<void> send(Variant<JS::Handle<JS::Object>, JS::Handle<FileAPI::Blob>, DeprecatedString> const& data);
private:
void on_open();