diff --git a/backend/index.ts b/backend/index.ts index 1cc5ba1..8514b17 100644 --- a/backend/index.ts +++ b/backend/index.ts @@ -35,10 +35,10 @@ const server = Bun.serve({ ws.subscribe("minesweeper-global"); }, }, - port: 8076, + port: 8072, }); on((event) => { server.publish("minesweeper-global", JSON.stringify(event)); }); -console.log("Listening on port 8076"); +console.log("Listening on port 8072"); diff --git a/src/wsClient.ts b/src/wsClient.ts index 4fc8f83..2571ed5 100644 --- a/src/wsClient.ts +++ b/src/wsClient.ts @@ -3,8 +3,8 @@ import { Events } from "../shared/events"; import { queryClient } from "./queryClient"; const connectionString = import.meta.env.DEV - ? "ws://localhost:8076/ws" - : "wss://mb.gordon.business/ws"; + ? "ws://localhost:8072/ws" + : "wss://mbv2.gordon.business/ws"; const messageListeners = new Set<(event: MessageEvent) => void>(); const addMessageListener = (listener: (event: MessageEvent) => void) => {