mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibWebSocket+RequestServer: Add a WebSocketImpl using libcurl
This implementation can be better improved in the future by ripping out a lot of the manual logic in LibWebSocket and rely on libcurl to parse our message payloads. But for now, this uses the 'raw mode' of curl websockets in connect-only mode to allow for somewhat seamless integration into our event loop.
This commit is contained in:
parent
ad985f3227
commit
71942d53eb
Notes:
github-actions[bot]
2025-02-20 22:06:12 +00:00
Author: https://github.com/ADKaster
Commit: 71942d53eb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3642
Reviewed-by: https://github.com/alimpfard ✅
7 changed files with 248 additions and 4 deletions
|
@ -27,6 +27,8 @@ public:
|
|||
virtual bool eof() = 0;
|
||||
virtual void discard_connection() = 0;
|
||||
|
||||
virtual bool handshake_complete_when_connected() const { return false; }
|
||||
|
||||
Function<void()> on_connected;
|
||||
Function<void()> on_connection_error;
|
||||
Function<void()> on_ready_to_read;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue