A websocket implementation for zig
0

Configure Feed

Select the types of activity you want to include in your feed.

fix conn.writeBuffer() usage in readme

opcode comes after allocator.

Vanya A. Sergeev (Mar 29, 2025, 8:03 PM -0500) 03511bf2 4e8fb28b

+2 -2
+2 -2
readme.md
··· 185 185 186 186 ```zig 187 187 // .text or .binary 188 - var wb = conn.writeBuffer(.text, allocator); 188 + var wb = conn.writeBuffer(allocator, .text); 189 189 defer wb.deinit(); 190 190 try std.fmt.format(wb.writer(), "it's over {d}!!!", .{9000}); 191 191 try wb.flush(); ··· 198 198 // Use the provided allocator. 199 199 // It's faster and doesn't require `deinit` to be called 200 200 201 - var wb = conn.writeBuffer(.text, allocator); 201 + var wb = conn.writeBuffer(allocator, .text); 202 202 try std.fmt.format(wb.writer(), "it's over {d}!!!", .{9000}); 203 203 try wb.flush(); 204 204 }