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

Remove useless code, make continues code style #59

Merged
merged 4 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions SignallingWebServer/cirrus.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const defaultConfig = {
AdditionalRoutes: new Map(),
EnableWebserver: true,
MatchmakerAddress: "",
MatchmakerPort: "9999",
MatchmakerPort: 9999,
PublicIp: "localhost",
HttpPort: 80,
HttpsPort: 443,
Expand Down Expand Up @@ -325,7 +325,6 @@ function sendMessageToPlayer(playerId, msg) {
}

let WebSocket = require('ws');
const { URL } = require('url');

console.logColor(logging.Green, `WebSocket listening for Streamer connections on :${streamerPort}`)
let streamerServer = new WebSocket.Server({ port: streamerPort, backlog: 1 });
Expand Down Expand Up @@ -891,10 +890,7 @@ function sendStreamerConnectedToMatchmaker() {

function sendStreamerDisconnectedToMatchmaker() {
if (!config.UseMatchmaker)
{
return;
}

try {
message = {
type: 'streamerDisconnected'
Expand Down
2 changes: 1 addition & 1 deletion SignallingWebServer/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"AdditionalRoutes": {},
"EnableWebserver": true,
"MatchmakerAddress": "",
"MatchmakerPort": "9999",
"MatchmakerPort": 9999,
"PublicIp": "localhost",
"HttpPort": 80,
"HttpsPort": 443,
Expand Down