No description
Find a file
lila 7f56ad89e6 feat(api): add WebSocket handlers and game state management
- handleLobbyJoin: validates DB membership and waiting status,
  registers connection, tags ws.lobbyId, broadcasts lobby:state
- handleLobbyLeave: host leave deletes lobby, non-host leave
  removes player and broadcasts updated state
- handleLobbyStart: validates host + connected players >= 2,
  generates questions, initializes LobbyGameData, broadcasts
  first game:question, starts 15s round timer
- handleGameAnswer: stores answer, resolves round when all
  players answered or timer fires
- resolveRound: evaluates answers, updates scores, broadcasts
  game:answer_result, advances to next question or ends game
- endGame: persists final scores via finishGame transaction,
  determines winnerIds handling ties, broadcasts game:finished
- gameState.ts: shared lobbyGameStore singleton and timers Map
- LobbyGameData extended with code field to avoid mid-game
  DB lookups by ID
2026-04-17 15:50:08 +02:00
.forgejo/workflows ci: add Forgejo Actions workflow for build and deploy 2026-04-14 18:20:05 +02:00
apps feat(api): add WebSocket handlers and game state management 2026-04-17 15:50:08 +02:00
data-sources formatting 2026-04-10 20:09:46 +02:00
documentation adding documentation for game modes 2026-04-15 11:56:46 +02:00
packages feat(api): add WebSocket foundation and multiplayer game store 2026-04-17 09:36:16 +02:00
scripts adding script to programmatically add issues to the forgejo project kanban 2026-04-16 14:43:59 +02:00
.dockerignore infra: add Docker Compose setup for local development 2026-03-25 18:56:04 +01:00
.env.example feat: add production deployment config 2026-04-14 11:38:40 +02:00
.gitignore setting up python env, download word data 2026-03-26 11:41:46 +01:00
.prettierignore chore: configure root eslint with react and tanstack router rules 2026-03-21 19:32:38 +01:00
.prettierrc chore: configure prettier with ignore rules and format scripts + running format 2026-03-20 18:37:38 +01:00
Caddyfile feat: add production deployment config 2026-04-14 11:38:40 +02:00
docker-compose.yml adding volumes 2026-04-15 05:07:52 +02:00
eslint.config.mjs chore: configure root eslint with react and tanstack router rules 2026-03-21 19:32:38 +01:00
mise.toml setting up python env, download word data 2026-03-26 11:41:46 +01:00
package.json chore: rename project from glossa to lila 2026-04-13 10:00:52 +02:00
pnpm-lock.yaml feat(api): add WebSocket foundation and multiplayer game store 2026-04-17 09:36:16 +02:00
pnpm-workspace.yaml formatting 2026-03-21 19:33:07 +01:00
README.md chore: rename project from glossa to lila 2026-04-13 10:00:52 +02:00
tsconfig.base.json formatting 2026-03-21 19:33:07 +01:00
tsconfig.json chore: configure prettier with ignore rules and format scripts + running format 2026-03-20 18:37:38 +01:00
vitest.config.ts chore: configure vitest with project-based setup and coverage 2026-03-20 19:25:00 +01:00

lila