From ae6c3061faa1862ef091b3bde94e1b63b028a803 Mon Sep 17 00:00:00 2001 From: Spencer Pogorzelski <34356756+Scoder12@users.noreply.github.com> Date: Mon, 14 Aug 2023 10:48:20 -0700 Subject: [PATCH] set dataChannel binaryType --- server/src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main.ts b/server/src/main.ts index fe0d5a6..c87cd91 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -97,6 +97,7 @@ async function answerRtc(data: any, onrespond: (answer: any) => void) { // res.json(answer); } }); + dataChannel.binaryType = "arraybuffer"; let server: AdriftServer;