mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
feat(game): enhance game reconnection logic and improve reset messages
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
export type Player = {
|
||||
id: string
|
||||
clientId: string
|
||||
connected: boolean
|
||||
username: string
|
||||
points: number
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user