From 590f25952d4a17864e5c039cc102349c52efa1df Mon Sep 17 00:00:00 2001 From: Andreas Stocker Date: Thu, 29 Feb 2024 15:51:35 +0100 Subject: [PATCH] WebSockets: fix write function by replacing fio.str2fio with util.str2fio --- src/websockets.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websockets.zig b/src/websockets.zig index c92ba37..772a289 100644 --- a/src/websockets.zig +++ b/src/websockets.zig @@ -119,7 +119,7 @@ pub fn Handler(comptime ContextType: type) type { pub inline fn write(handle: WsHandle, message: []const u8, is_text: bool) WebSocketError!void { if (fio.websocket_write( handle, - fio.str2fio(message), + util.str2fio(message), if (is_text) 1 else 0, ) != 0) { return error.WriteError;