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:
parent
1cb29622e7
commit
590f25952d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue