- server.ts: switch from app.listen() to server.listen() so WebSocket upgrade handler is on the same server as HTTP requests - lobbyService: add host as first player on lobby creation - ws-client: guard against reconnect when already connecting - ws-provider: skip connect if already connected |
||
|---|---|---|
| .. | ||
| controllers | ||
| errors | ||
| gameSessionStore | ||
| lib | ||
| lobbyGameStore | ||
| middleware | ||
| routes | ||
| services | ||
| types | ||
| ws | ||
| app.ts | ||
| server.ts | ||