summaryrefslogtreecommitdiff
path: root/src/Client.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Client.zig')
-rw-r--r--src/Client.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Client.zig b/src/Client.zig
index 57af48c..f1786e8 100644
--- a/src/Client.zig
+++ b/src/Client.zig
@@ -127,7 +127,7 @@ pub fn connect(payload: []const u8, allocator: Allocator) !?SaprusConnection {
const len = try sock.receive(&response_buf);
std.debug.print("response bytes: {x}\n", .{response_buf[0..len]});
- initial_conn_res = SaprusMessage.init(.connection, response_buf[0..len]);
+ initial_conn_res = try .networkBytesAsValue(response_buf[0..len]);
// Complete handshake after awaiting response
try broadcastSaprusMessage(msg, randomPort());