Skip to content

trackkit / dispatcher/types / ConnectionOptions

Interface: ConnectionOptions ​

Defined in: dispatcher/types.ts:138

Network connection and offline handling options.

Properties ​

monitor? ​

optional monitor: boolean

Defined in: dispatcher/types.ts:145

Enable network connection monitoring.

When true, the dispatcher may record reachability state and adapt behaviour when offline.


offlineStorage? ​

optional offlineStorage: boolean

Defined in: dispatcher/types.ts:152

Store events offline when network is unavailable.

Exact storage semantics are implementation-dependent.


checkInterval? ​

optional checkInterval: number

Defined in: dispatcher/types.ts:157

Interval in milliseconds to check network connection status.


syncInterval? ​

optional syncInterval: number

Defined in: dispatcher/types.ts:162

Interval in milliseconds to sync offline events when back online.


slowThreshold? ​

optional slowThreshold: number

Defined in: dispatcher/types.ts:169

Threshold in milliseconds to consider a request "slow".

Used by performance monitoring / diagnostics.

Released under the MIT License.