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

Commit

Permalink
Remove useless code, make code style more consistent (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Senseme committed Jan 30, 2023
1 parent 934f364 commit daf99de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
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

0 comments on commit daf99de

Please sign in to comment.