1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

LibWebSocket: Fix a handful of clang-tidy warnings in WebSocket.{cpp,h}

This commit is contained in:
Andreas Kling 2021-09-18 12:48:34 +02:00
parent 4e47e6d578
commit 00895a5789
2 changed files with 12 additions and 15 deletions

View file

@ -35,10 +35,10 @@ public:
void start();
// This can only be used if the `ready_state` is `ReadyState::Open`
void send(Message);
void send(Message const&);
// This can only be used if the `ready_state` is `ReadyState::Open`
void close(u16 code = 1005, String reason = {});
void close(u16 code = 1005, String const& reason = {});
Function<void()> on_open;
Function<void(u16 code, String reason, bool was_clean)> on_close;