fix: set binaryType

This commit is contained in:
Derrick Hammer 2024-01-10 03:18:32 -05:00
parent 11a033b3f7
commit d1ce4a1ae0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ export async function subscribeToEntry(
const wsUrl = url.replace(/^http/, "ws"); const wsUrl = url.replace(/^http/, "ws");
const socket = new WS(wsUrl); const socket = new WS(wsUrl);
socket.binaryType = "arraybuffer";
socket.addEventListener("open", () => { socket.addEventListener("open", () => {
const packer = new Packer(); const packer = new Packer();