From 6cd0c198de47fd28987b629e18820fb019b6ebdb Mon Sep 17 00:00:00 2001 From: MasterGordon Date: Sun, 29 Sep 2024 14:06:00 +0200 Subject: [PATCH] updated port --- backend/index.ts | 4 ++-- src/wsClient.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) => {