Skip to content

Commit

Permalink
spectate-broadcast-request check broadcastId is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlee337 committed Mar 12, 2024
1 parent b5880c0 commit b17b39d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remote/remote.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class RemoteServer {
await throttledRefresh();
} else if (json.op === "spectate-broadcast-request") {
const broadcastId = json.broadcastId;
if (!broadcastId) {
if (!broadcastId || typeof broadcastId !== "string") {
newConnection.sendUTF(JSON.stringify({ op: "spectate-broadcast-response", err: "no broadcastId" }));
return;
}
Expand Down

0 comments on commit b17b39d

Please sign in to comment.