Skip to content

TikTokLiveConnectionOptions

TikTokLiveConnectionOptions = TikTokLiveConnectionProviderOptions & object

Defined in: src/types/client.ts:67

optional clientPresets?: GetWebConfigParams

Device, location, and screen presets. Randomization defaults are controlled by the environment.

enableExtendedGiftInfo: boolean

Fetch and cache gifts during connection, then attach matching metadata to gift events. Defaults to false.

fetchRoomInfoOnConnect: boolean

Fetch and cache room information before opening the socket. Defaults to true.

processInitialData: boolean

Emit messages from the initial signing response. Defaults to true.

optional webClientOptions?: WebcastGotHttpConfig

Got options. Headers and searchParams are merged; the current constructor drops timeout.

optional webConfigOverrides?: Partial<WebcastWebConfigDefaults>

Shallow replacement of resolved HTTP protocol config fields, including whole nested objects.

optional wsClientOptions?: WsWebSocketConfig

ws transport options. Dynamic connection headers take precedence over supplied headers.

optional wsConfigOverrides?: Partial<WebcastWebSocketConfigDefaults>

Shallow replacement of resolved WebSocket protocol config fields, including whole nested objects.