1
0
mirror of https://github.com/thib8956/tic-tac-toe-ws.git synced 2026-02-21 07:48:12 +00:00

feat: calculate size based on screen size

This commit is contained in:
2026-02-18 10:35:58 +01:00
parent 4277a0ca48
commit ae7c3a4662
3 changed files with 53 additions and 48 deletions

View File

@@ -97,9 +97,11 @@ wss.on("connection", (ws, req) => {
currentPlayer = undefined;
endGame = false;
for (const c of clients) {
c.ws.send(JSON.stringify({
const m = JSON.stringify({
kind: "reset"
} as Message));
} as Message);
console.log("sent response", m, c.id);
c.ws.send(m);
}
for (const s of spectators) {