Skip to content

PERS SDK - v2.3.26 / Exports / EventsClientConfig

Interface: EventsClientConfig

Events client configuration

Table of contents

Properties

Properties

wsUrl

wsUrl: string

WS Relay server URL (wss://...)

Defined in

events/types.ts:70


autoReconnect

Optional autoReconnect: boolean

Reconnect on disconnect

Defined in

events/types.ts:72


maxReconnectAttempts

Optional maxReconnectAttempts: number

Max reconnect attempts (default: 10)

Defined in

events/types.ts:74


reconnectDelay

Optional reconnectDelay: number

Reconnect delay in ms (default: 1000)

Defined in

events/types.ts:76


connectionTimeout

Optional connectionTimeout: number

Connection timeout in ms (default: 30000)

Defined in

events/types.ts:78


debug

Optional debug: boolean

Debug logging

Defined in

events/types.ts:80


tokenRefresher

Optional tokenRefresher: () => Promise<string>

Token refresh callback for reconnection (optional)

Type declaration

▸ (): Promise<string>

Returns

Promise<string>

Defined in

events/types.ts:82