Checks if the current user currecntly occupies a specific seat.
The index of the seat to check.
true if the user can occupy the seat, otherwise false.
Checks if a specific seat is empty.
The index of the seat to check.
true if the seat is empty, otherwise false.
Leaves a specific seat in the game room.
The index of the seat to leave.
Gets the seat index of the current user.
The seat index of the user.
Takes the first available seat in the game room.
A promise that resolves to the index of the seat taken.
Takes a specific seat in the game room.
The index of the seat to take.
The Redux-like store that manages the state of the game room.