feat(game): enhance game reconnection logic and improve reset messages

This commit is contained in:
Ralex
2025-10-25 16:38:07 +02:00
parent dbefaa0557
commit 74707749aa
11 changed files with 114 additions and 76 deletions

View File

@@ -1,6 +1,7 @@
export type Player = {
id: string
clientId: string
connected: boolean
username: string
points: number
}

View File

@@ -32,7 +32,7 @@ export interface ServerToClientEvents {
"game:startCooldown": () => void
"game:cooldown": (_count: number) => void
"game:kick": () => void
"game:reset": () => void
"game:reset": (_message: string) => void
"game:updateQuestion": (_data: { current: number; total: number }) => void
"game:playerAnswer": (_count: number) => void