mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
LibWeb: Make WebSocket::close() arguments optional to match IDL
This commit is contained in:
parent
c843f2e3a5
commit
8abe653009
2 changed files with 19 additions and 12 deletions
|
@ -87,7 +87,7 @@ public:
|
|||
const String& binary_type() { return m_binary_type; };
|
||||
void set_binary_type(const String& type) { m_binary_type = type; };
|
||||
|
||||
DOM::ExceptionOr<void> close(u16 code, const String& reason);
|
||||
DOM::ExceptionOr<void> close(Optional<u16> code, Optional<String> reason);
|
||||
DOM::ExceptionOr<void> send(const String& data);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue