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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user