1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 04:04:58 +00:00
serenity/Userland/Services/WebSocket/WebSocketServer.ipc
Gunnar Beutner 9e22e9ce88 Userland: Use snake case names in .ipc files
This updates all .ipc files to have snake case names for IPC methods.
2021-05-03 21:14:40 +02:00

13 lines
513 B
Text

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)
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)
}