Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Fixing sfu forwarding.
Browse files Browse the repository at this point in the history
(cherry picked from commit 7f07f4b)
  • Loading branch information
mcottontensor committed Oct 31, 2023
1 parent fdb6d6d commit 22de24e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SignallingWebServer/cirrus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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')) {
Expand Down

0 comments on commit 22de24e

Please sign in to comment.