Skip to content

Commit

Permalink
WebSockets: fix write function by replacing fio.str2fio with util.str…
Browse files Browse the repository at this point in the history
…2fio
  • Loading branch information
xflow-systems committed Feb 29, 2024
1 parent 1cb2962 commit 590f259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/websockets.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 590f259

Please sign in to comment.