Skip to content

Commit

Permalink
Raspberry server host is not exposed (GM)
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazEpic authored May 8, 2024
1 parent d3b8222 commit 1a998b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/Game_Manager/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ const broadcastScore = setInterval(() => {

// SECTION: WEBSOCKET GAME MANAGER <-> RASPBERRY
// Make sure to set up Raspberry server first
const ws_raspberry = new WebSocket(`ws://${LOCALHOST}:${PORT_GM_RASPBERRY}`)
const ws_raspberry = new WebSocket(`ws://localhost:${PORT_GM_RASPBERRY}`)

ws_raspberry.onopen = (event) => {
console.log(`WS_RASPBERRY CONNECTED ws://${LOCALHOST}:${PORT_GM_RASPBERRY}`)
console.log(`WS_RASPBERRY CONNECTED ws://localhost:${PORT_GM_RASPBERRY}`)
}

ws_raspberry.onerror = (error) => {
Expand Down Expand Up @@ -411,4 +411,4 @@ ws_raspberry.onmessage = (event) => {
score2 = s2final
game_state = GAME_STATE.RESETTING
}
}
}

0 comments on commit 1a998b9

Please sign in to comment.