We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc59a0f commit 8aac26aCopy full SHA for 8aac26a
src/cdp/cdp.zig
@@ -206,6 +206,9 @@ pub fn sendEvent(
206
params: T,
207
sessionID: ?[]const u8,
208
) !void {
209
+ // some clients like chromedp expects empty parameters structs.
210
+ if (T == void) @compileError("sendEvent: use struct{} instead of void for empty parameters");
211
+
212
log_cdp.debug("Event > method {s}, sessionID {?s}", .{ name, sessionID });
213
const Resp = struct {
214
method: []const u8,
0 commit comments