updated port
This commit is contained in:
parent
2db2b42fd8
commit
6cd0c198de
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue