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

@@ -292,7 +292,7 @@ fn disposeBrowserContext(
// output
const res = try result(alloc, input.id, null, .{}, null);
try server.sendAsync(ctx, res);
try ctx.send(res);
return error.DisposeBrowserContext;
}
@@ -378,7 +378,7 @@ fn closeTarget(
success: bool = true,
};
const res = try result(alloc, input.id, Resp, Resp{}, null);
try server.sendAsync(ctx, res);
try ctx.send(res);
// Inspector.detached event
const InspectorDetached = struct {