Skip to content

ChatPushClientOptions

Defined in: push/types.ts:1

chatApiUrl: string

Defined in: push/types.ts:3

Base URL of the Chat API, e.g. https://chat.centralcodestation.com/api/v1


tenantId: string

Defined in: push/types.ts:5

Push devices are tenant-scoped: the tenant whose notifications this browser should receive.


getAccessToken: () => string | Promise<string | null | undefined> | null | undefined

Defined in: push/types.ts:7

Returns the current user’s own CCS access token — sync or async, re-read on every register()/unregister() call.

string | Promise<string | null | undefined> | null | undefined


optional serviceWorkerUrl?: string

Defined in: push/types.ts:14

Path to the service worker file your app hosts and serves at its site root — see push-sw-template.js in this package and the README. Registered via navigator.serviceWorker.register() on every register()/unregister() call (idempotent). Defaults to ‘/push-sw.js’.