Add chess premoves and time control metadata
- pass chess room time control to the client - add premove handling and richer chess board UI - update join result typing for room options
This commit is contained in:
@@ -21,7 +21,7 @@ interface GameRoomState {
|
||||
roundResult: RoundResult | null;
|
||||
error: string | null;
|
||||
sessionReplaced: boolean;
|
||||
roomOptions: { betAmount?: number };
|
||||
roomOptions: { betAmount?: number; timeControl?: string };
|
||||
}
|
||||
|
||||
export function useGameRoom(roomId: string, userId: string, role?: string, preferAs: "player" | "spectator" = "player") {
|
||||
|
||||
Reference in New Issue
Block a user