mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
LibWebView+LibProtocol: Allow app to pass custom WebSocketClients
This commit is contained in:
parent
a1e5a6ac40
commit
dd694215bc
3 changed files with 8 additions and 2 deletions
|
@ -21,6 +21,8 @@ class WebSocketClient final
|
|||
IPC_CLIENT_CONNECTION(WebSocketClient, "/tmp/session/%sid/portal/websocket"sv)
|
||||
|
||||
public:
|
||||
explicit WebSocketClient(NonnullOwnPtr<Core::LocalSocket>);
|
||||
|
||||
RefPtr<WebSocket> connect(const URL&, DeprecatedString const& origin = {}, Vector<DeprecatedString> const& protocols = {}, Vector<DeprecatedString> const& extensions = {}, HashMap<DeprecatedString, DeprecatedString> const& request_headers = {});
|
||||
|
||||
u32 ready_state(Badge<WebSocket>, WebSocket&);
|
||||
|
@ -30,8 +32,6 @@ public:
|
|||
bool set_certificate(Badge<WebSocket>, WebSocket&, DeprecatedString, DeprecatedString);
|
||||
|
||||
private:
|
||||
WebSocketClient(NonnullOwnPtr<Core::LocalSocket>);
|
||||
|
||||
virtual void connected(i32) override;
|
||||
virtual void received(i32, bool, ByteBuffer const&) override;
|
||||
virtual void errored(i32, i32) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue