From d1ce4a1ae039dba8ae5497d6106730c44801b83e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 10 Jan 2024 03:18:32 -0500 Subject: [PATCH] fix: set binaryType --- src/methods/registry.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/methods/registry.ts b/src/methods/registry.ts index e6238b4..93ffaef 100644 --- a/src/methods/registry.ts +++ b/src/methods/registry.ts @@ -73,6 +73,7 @@ export async function subscribeToEntry( const wsUrl = url.replace(/^http/, "ws"); const socket = new WS(wsUrl); + socket.binaryType = "arraybuffer"; socket.addEventListener("open", () => { const packer = new Packer();