1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 23:24:09 +00:00

WebSockets: fix write function by replacing fio.str2fio with util.str2fio

This commit is contained in:
Andreas Stocker 2024-02-29 15:51:35 +01:00
parent 1cb29622e7
commit 590f25952d

View file

@ -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;