Skip to main content

ServerClientOptions

@ticketlayer/live


@ticketlayer/live / server / ServerClientOptions

Interface: ServerClientOptions

Defined in: server.ts:42

Properties

apiUrl

apiUrl: string;

Defined in: server.ts:44

Base URL of the Live API (server-side/internal host is fine).


apiVersion?

optional apiVersion?: string;

Defined in: server.ts:58

Override the dated API version sent as TL-Version.


cache?

optional cache?: false | ServerCacheOptions;

Defined in: server.ts:54

In-memory response cache. false disables it. Default: 60s TTL.


channelKey?

optional channelKey?: string;

Defined in: server.ts:48

Alias of publishableKey, matching the /session body field name.


credentialTtlMs?

optional credentialTtlMs?: number;

Defined in: server.ts:56

How long a domain-resolved publishable key is kept. Default 10 minutes.


domain?

optional domain?: string;

Defined in: server.ts:50

Hosted style: resolve the channel by storefront domain instead of a key.


fetch?

optional fetch?: FetchLike;

Defined in: server.ts:52

fetch implementation; defaults to the global fetch (Node 18+).


publishableKey?

optional publishableKey?: string;

Defined in: server.ts:46

Embed style: the channel publishable key (tlpk_...).


requestInit?

optional requestInit?: RequestInit;

Defined in: server.ts:60

RequestInit merged into every request (headers are merged, not replaced).