Skip to content

Commit d954620

Browse files
websockets: fix port default in help
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
1 parent 95ac92b commit d954620

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fn common(
169169
});
170170
step.root_module.addImport("tls", tlsmod);
171171

172-
const wsmod = b.addModule("ws", .{
172+
const wsmod = b.addModule("websocket", .{
173173
.root_source_file = b.path("vendor/websocket.zig/src/websocket.zig"),
174174
});
175175
step.root_module.addImport("websocket", wsmod);

src/handler.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub const Stream = struct {
4545
}
4646

4747
fn closeCDP(self: *const Stream) void {
48-
const close_msg: []const u8 = .{ 5, 0 } ++ "close";
48+
const close_msg: []const u8 = "5:close";
4949
self.recv(close_msg) catch |err| {
5050
log.err("stream close error: {any}", .{err});
5151
};

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const usage =
4949
\\
5050
\\ -h, --help Print this help message and exit.
5151
\\ --host Host of the CDP server (default "127.0.0.1")
52-
\\ --port Port of the CDP server (default "3245")
52+
\\ --port Port of the CDP server (default "9222")
5353
\\ --timeout Timeout for incoming connections of the CDP server (in seconds, default "3")
5454
\\ --dump Dump document in stdout (fetch mode only)
5555
\\

0 commit comments

Comments
 (0)