summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWebSocket
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-11 18:27:30 +0100
committerAndreas Kling <kling@serenityos.org>2022-12-12 14:16:42 +0100
commit6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3 (patch)
tree327b04fb4820758e4d8cc60d30bd849d7b3511eb /Userland/Libraries/LibWebSocket
parented4c2f2f8ea59295edceca77bf308df5de6872d6 (diff)
downloadserenity-6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3.zip
LibCore: Rename `Stream::*_or_error` to `*_entire_buffer`
All of our functions are `_or_error` (or are about to be), and maybe making it less reminiscient of AK::Stream will make people use it more.
Diffstat (limited to 'Userland/Libraries/LibWebSocket')
-rw-r--r--Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp b/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp
index 0f2004a336..42ea661c71 100644
--- a/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp
+++ b/Userland/Libraries/LibWebSocket/Impl/WebSocketImplSerenity.cpp
@@ -21,7 +21,7 @@ bool WebSocketImplSerenity::can_read_line()
bool WebSocketImplSerenity::send(ReadonlyBytes bytes)
{
- return m_socket->write_or_error(bytes);
+ return m_socket->write_entire_buffer(bytes);
}
bool WebSocketImplSerenity::eof()