websocket: first implementation

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2024-11-26 12:55:48 +01:00
parent 8f7a8c0ee1
commit 325ecedf0b
10 changed files with 196 additions and 120 deletions

View File

@@ -193,7 +193,7 @@ pub fn sendEvent(
const resp = Resp{ .method = name, .params = params, .sessionId = sessionID };
const event_msg = try stringify(alloc, resp);
try server.sendAsync(ctx, event_msg);
try ctx.send(event_msg);
}
// Common