From e04926ec8e4cd9014954f97abc38029ce386f953 Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Wed, 1 Apr 2026 02:23:23 -0500 Subject: [PATCH] fix: pass io to websocket.Client.init for 0.16 compat websocket.zig 0.16 requires io as first parameter to Client.init. Co-Authored-By: Claude Opus 4.6 --- build.zig.zon | 6 +++--- src/internal/streaming/jetstream.zig | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index 33ac3d9..8480ec4 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,12 +1,12 @@ .{ .name = .zat, - .version = "0.3.0-alpha.1", + .version = "0.3.0-alpha.2", .fingerprint = 0x8da9db57ee82fbe4, .minimum_zig_version = "0.16.0", .dependencies = .{ .websocket = .{ - .url = "https://github.com/zzstoatzz/websocket.zig/archive/b6eb671ecdfbc02fbdbf45a384f38fbbceb5fac7.tar.gz", - .hash = "websocket-0.1.0-ZPISdZinAwCEIdIg2GcJ7RIgpR8GddRl2SI2dVgfenT6", + .url = "https://github.com/zzstoatzz/websocket.zig/archive/add0960.tar.gz", + .hash = "websocket-0.1.0-ZPISdbunAwBBlC_bfYeEU4aSFXSrpDeiM2wk2z6dNDqX", }, .@"atproto-interop-tests" = .{ .url = "https://github.com/bluesky-social/atproto-interop-tests/archive/35bb5638ab1e5ce71fb88a0c95953fc557ef1925.tar.gz", diff --git a/src/internal/streaming/jetstream.zig b/src/internal/streaming/jetstream.zig index c394e15..3a03d10 100644 --- a/src/internal/streaming/jetstream.zig +++ b/src/internal/streaming/jetstream.zig @@ -192,7 +192,7 @@ pub const JetstreamClient = struct { log.info("connecting to wss://{s}{s}", .{ host, path }); - var client = try websocket.Client.init(self.allocator, .{ + var client = try websocket.Client.init(std.Options.debug_io, self.allocator, .{ .host = host, .port = 443, .tls = true, -- 2.51.2