fix server crash

This commit is contained in:
Spencer Pogorzelski 2023-08-18 20:55:50 -07:00
parent 1fd0878c91
commit d131afc85e

View file

@ -96,7 +96,7 @@ export async function answerRtc(data: any, onrespond: (answer: any) => void) {
server.onMsg(bufferToArrayBuffer(event.data)); server.onMsg(bufferToArrayBuffer(event.data));
return; return;
} }
throw new Error("Unexpected datachannel message type"); // ignore text and other types of messages
}; };
} }
} }