From 32f01e3e328db0006a55c6324625b49d60244b66 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 28 Feb 2026 15:16:20 -0800 Subject: fix typescript issues --- lib/zmq.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/zmq.ts') diff --git a/lib/zmq.ts b/lib/zmq.ts index bce898d4..342d72ae 100644 --- a/lib/zmq.ts +++ b/lib/zmq.ts @@ -221,8 +221,8 @@ const startSub = (url: string, topic: string, onMessage: (b: Uint8Array) => void }; socket.on("connect", () => socket.write(greeting())); - socket.on("data", (d: Uint8Array) => { - buffer = concatBytes(buffer, d); + socket.on("data", (d: any) => { + buffer = concatBytes(buffer, d as Uint8Array) as any; processBuffer().catch((e) => err("zmq parse error", e.message)); }); socket.on("error", (e) => { -- cgit v1.2.3