websockets: fix port default in help

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2024-11-29 15:04:02 +01:00
parent 95ac92b343
commit d95462073a
3 changed files with 3 additions and 3 deletions

View File

@@ -169,7 +169,7 @@ fn common(
});
step.root_module.addImport("tls", tlsmod);
const wsmod = b.addModule("ws", .{
const wsmod = b.addModule("websocket", .{
.root_source_file = b.path("vendor/websocket.zig/src/websocket.zig"),
});
step.root_module.addImport("websocket", wsmod);

View File

@@ -45,7 +45,7 @@ pub const Stream = struct {
}
fn closeCDP(self: *const Stream) void {
const close_msg: []const u8 = .{ 5, 0 } ++ "close";
const close_msg: []const u8 = "5:close";
self.recv(close_msg) catch |err| {
log.err("stream close error: {any}", .{err});
};

View File

@@ -49,7 +49,7 @@ const usage =
\\
\\ -h, --help Print this help message and exit.
\\ --host Host of the CDP server (default "127.0.0.1")
\\ --port Port of the CDP server (default "3245")
\\ --port Port of the CDP server (default "9222")
\\ --timeout Timeout for incoming connections of the CDP server (in seconds, default "3")
\\ --dump Dump document in stdout (fetch mode only)
\\