mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +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
11
Userland/Services/WebSocket/WebSocketClient.ipc
Normal file
11
Userland/Services/WebSocket/WebSocketClient.ipc
Normal file
|
@ -0,0 +1,11 @@
|
|||
endpoint WebSocketClient
|
||||
{
|
||||
// Connection API
|
||||
Connected(i32 connection_id) =|
|
||||
Received(i32 connection_id, bool is_text, ByteBuffer data) =|
|
||||
Errored(i32 connection_id, i32 message) =|
|
||||
Closed(i32 connection_id, u16 code, String reason, bool clean) =|
|
||||
|
||||
// Certificate requests
|
||||
CertificateRequested(i32 connection_id) =|
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue