add timeout for inactive games

#1
also removed some redundant code
This commit is contained in:
Nathaniel Tampus
2023-01-16 15:10:53 +08:00
parent e823fb15e9
commit a65202357e
2 changed files with 42 additions and 52 deletions

View File

@@ -7,6 +7,7 @@ export interface Game {
host?: User;
code?: string;
open?: boolean;
timeout?: number;
observers?: User[];
}