Serenity Operating System
1/*
2 * Copyright (c) 2022, Dex♪ <dexes.ttp@gmail.com>
3 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
4 *
5 * SPDX-License-Identifier: BSD-2-Clause
6 */
7
8#include <LibWeb/WebSockets/WebSocket.h>
9#include <LibWebSocket/ConnectionInfo.h>
10#include <LibWebSocket/Message.h>
11#include <LibWebSocket/WebSocket.h>
12
13#pragma once
14
15namespace Ladybird {
16
17class WebSocketClientManagerLadybird : public Web::WebSockets::WebSocketClientManager {
18public:
19 static NonnullRefPtr<WebSocketClientManagerLadybird> create();
20
21 virtual ~WebSocketClientManagerLadybird() override;
22 virtual RefPtr<Web::WebSockets::WebSocketClientSocket> connect(AK::URL const&, DeprecatedString const& origin, Vector<DeprecatedString> const& protocols) override;
23
24private:
25 WebSocketClientManagerLadybird();
26};
27
28}