blob: 5b5bc7aa8bc7e5d319352262627c7fc2671bac11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <AK/URL.h>
endpoint WebSocketServer
{
// Connection API
connect(URL url, DeprecatedString origin, Vector<DeprecatedString> protocols, Vector<DeprecatedString> extensions, IPC::Dictionary additional_request_headers) => (i32 connection_id)
ready_state(i32 connection_id) => (u32 ready_state)
subprotocol_in_use(i32 connection_id) => (DeprecatedString subprotocol_in_use)
send(i32 connection_id, bool is_text, ByteBuffer data) =|
close(i32 connection_id, u16 code, DeprecatedString reason) =|
set_certificate(i32 connection_id, DeprecatedString certificate, DeprecatedString key) => (bool success)
}
|