Skip to content

Commit

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

// WEBSOCKET RASPBERRY
// Make sure to set up Raspberry server first
const ws_raspberry = new WebSocket(`ws://${LOCALHOST}:${PORT_WSS_RASPBERRY}`)
const ws_raspberry = new WebSocket(`ws://localhost:${PORT_WSS_RASPBERRY}`)

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

ws_raspberry.onerror = (error) => {
Expand Down Expand Up @@ -230,4 +230,4 @@ server.on("upgrade", async (request, socket, head) => {

server.listen(PORT_WSS_CLIENT, () => {
console.log(`SERVER is running on http://${LOCALHOST}:${PORT_WSS_CLIENT}`)
})
})

0 comments on commit 5559f3e

Please sign in to comment.