Skip to main content

Type Alias: ConnectionConfig

ConnectionConfig: object

Defined in: packages/react-native-client/src/common/client.ts:4

Type declaration

reconnectConfig?

optional reconnectConfig: object

Configuration for automatic reconnection sdk uses a linear backoff algorithm, that is the formula for the delay of the nth attempt is n * delayMs + initialDelayMs

Pass 0 for maxAttempts to disable automatic reconnection

reconnectConfig.delayMs?

optional delayMs: number

reconnectConfig.initialDelayMs?

optional initialDelayMs: number

reconnectConfig.maxAttempts?

optional maxAttempts: number