diff --git a/server/src/rooms/GameRoom.ts b/server/src/rooms/GameRoom.ts index 65852c6..ffdd2b2 100644 --- a/server/src/rooms/GameRoom.ts +++ b/server/src/rooms/GameRoom.ts @@ -7,7 +7,7 @@ import { broadcastDashboardUpdate } from "../adminApi"; export class GameRoom extends Room { maxClients = 2; - getAvailableData() { + getFilterOptions() { // If waiting for shuffled players, report as available regardless of current client count if (this.isWaitingForShuffledPlayers) { return { @@ -16,7 +16,11 @@ export class GameRoom extends Room { metadata: this.metadata }; } - return super.getAvailableData(); + return { + clients: this.clients.length, + maxClients: this.maxClients, + metadata: this.metadata + }; } hasReachedMaxClients() {