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:
parent
1b6492d0fb
commit
8addcd237c
3 changed files with 23 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue