1
Fork 0
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:
Idan Horowitz 2022-03-29 22:35:54 +03:00
parent c843f2e3a5
commit 8abe653009
2 changed files with 19 additions and 12 deletions

View file

@ -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: