Fixing sfu forwarding.

This commit is contained in:
Matthew Cotton 2023-10-31 12:54:41 +11:00
parent 339aa088cc
commit 7f07f4b29e
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -460,7 +460,7 @@ function getSFUForStreamer(streamerId) {
}
const streamer = streamers.get(streamerId);
const sfuPlayerId = streamer.getSFUPlayerId();
if (!!sfuPlayerId) {
if (!sfuPlayerId) {
return null;
}
return players.get(sfuPlayerId);
@ -661,7 +661,6 @@ streamerServer.on('connection', function (ws, req) {
ws.close(1008, 'Cannot parse');
return;
}
console.log(msgRaw);
let handler = streamerMessageHandlers.get(msg.type);
if (!handler || (typeof handler != 'function')) {