ladybird/Userland/Libraries/LibWebSocket
DerpyCrabs 29078d4d53 LibWebSocket: Don't try to send empty payload inside of frame
According to RFC 6455 sections 5.5.2-5.5.3 Ping and Pong frames
can have empty "Application data" that means payload can be of size 0.
This change fixes failed "buffer.size()" assertion inside
of Core::Stream::write_or_error by not trying to send empty payload
in WebSocket::send_frame.
2022-02-12 11:12:43 +01:00
..
Impl LibWebSocket: Switch to using Core::Stream 2022-02-06 13:10:10 +01:00
CMakeLists.txt LibWebSocket: Switch to using Core::Stream 2022-02-06 13:10:10 +01:00
ConnectionInfo.cpp LibWebSocket+telws: Use my own copyright headers :^) 2021-04-25 19:04:34 +02:00
ConnectionInfo.h LibCore+Userland: Remove Core::TCPSocket :^) 2022-02-06 17:28:17 +00:00
Message.h Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
WebSocket.cpp LibWebSocket: Don't try to send empty payload inside of frame 2022-02-12 11:12:43 +01:00
WebSocket.h LibWebSocket: Switch to using Core::Stream 2022-02-06 13:10:10 +01:00