From d131afc85e204f8b41511a55106beaa121894112 Mon Sep 17 00:00:00 2001 From: Spencer Pogorzelski <34356756+Scoder12@users.noreply.github.com> Date: Fri, 18 Aug 2023 20:55:50 -0700 Subject: [PATCH] fix server crash --- server/src/rtc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/rtc.ts b/server/src/rtc.ts index b606283..e124fb7 100644 --- a/server/src/rtc.ts +++ b/server/src/rtc.ts @@ -96,7 +96,7 @@ export async function answerRtc(data: any, onrespond: (answer: any) => void) { server.onMsg(bufferToArrayBuffer(event.data)); return; } - throw new Error("Unexpected datachannel message type"); + // ignore text and other types of messages }; } }