Options controlling the behavior of a GameRoomClient.

interface GameRoomClientOptions {
    autoreconnect?: boolean;
    reconnectDelay?: (tries: number) => undefined | number;
}

Properties

autoreconnect?: boolean

Whether the client should automatically try to reconnect after an unexpected disconnection. Defaults to true.

reconnectDelay?: (tries: number) => undefined | number

Computes the delay (in ms) before a reconnect attempt, based on the number of tries made so far.