updated port

This commit is contained in:
MasterGordon 2024-09-29 14:06:00 +02:00
parent 2db2b42fd8
commit 6cd0c198de
2 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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) => {