Skip to content

ReconnectPolicy

Defined in: client-sdk-js/src/room/DefaultReconnectPolicy.ts:14

Custom reconnection strategy. Provide an implementation via RoomOptions.reconnectPolicy to control retry behaviour after a connection interruption.

nextRetryDelayInMs(context): number | null;

Defined in: client-sdk-js/src/room/DefaultReconnectPolicy.ts:19

Returns the number of milliseconds to wait before the next reconnect attempt, or null if the policy says to stop trying.

ReconnectContext

number | null


reset?(): void;

Defined in: client-sdk-js/src/room/DefaultReconnectPolicy.ts:24

Optional hook invoked after a successful (re)connection.

void