mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
Services: Add a WebSocket service
The WebSocket service isolates communication with a WebSocket to its own isolated process. Similar to other isolating services, it has its own user and group.
This commit is contained in:
parent
c11ca9df33
commit
62ed26164b
16 changed files with 582 additions and 1 deletions
13
Userland/Services/WebSocket/WebSocketServer.ipc
Normal file
13
Userland/Services/WebSocket/WebSocketServer.ipc
Normal file
|
@ -0,0 +1,13 @@
|
|||
endpoint WebSocketServer
|
||||
{
|
||||
// Basic protocol
|
||||
Greet() => ()
|
||||
|
||||
// Connection API
|
||||
Connect(URL url, String origin, Vector<String> protocols, Vector<String> extensions, IPC::Dictionary additional_request_headers) => (i32 connection_id)
|
||||
ReadyState(i32 connection_id) => (u32 ready_state)
|
||||
Send(i32 connection_id, bool is_text, ByteBuffer data) =|
|
||||
Close(i32 connection_id, u16 code, String reason) =|
|
||||
|
||||
SetCertificate(i32 connection_id, String certificate, String key) => (bool success)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue