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