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.
Methods
Section titled “Methods”nextRetryDelayInMs()
Section titled “nextRetryDelayInMs()”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.
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”number | null
reset()?
Section titled “reset()?”reset?(): void;Defined in: client-sdk-js/src/room/DefaultReconnectPolicy.ts:24
Optional hook invoked after a successful (re)connection.
Returns
Section titled “Returns”void