diff --git a/src/webrtc/opcodes/SelectProtocol.ts b/src/webrtc/opcodes/SelectProtocol.ts index dfd9714f..4a2ee85d 100644 --- a/src/webrtc/opcodes/SelectProtocol.ts +++ b/src/webrtc/opcodes/SelectProtocol.ts @@ -35,6 +35,10 @@ export async function onSelectProtocol( payload.d, ) as SelectProtocolSchema; + // UDP protocol not currently supported. Maybe in the future? + if (data.protocol !== "webrtc") + return this.close(4000, "only webrtc protocol supported currently"); + const response = await mediaServer.onOffer( this.webRtcClient, data.sdp!,