ChatPushClientOptions
Defined in: push/types.ts:1
Properties
Section titled “Properties”chatApiUrl
Section titled “chatApiUrl”chatApiUrl:
string
Defined in: push/types.ts:3
Base URL of the Chat API, e.g. https://chat.centralcodestation.com/api/v1
tenantId
Section titled “tenantId”tenantId:
string
Defined in: push/types.ts:5
Push devices are tenant-scoped: the tenant whose notifications this browser should receive.
getAccessToken
Section titled “getAccessToken”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.
Returns
Section titled “Returns”string | Promise<string | null | undefined> | null | undefined
serviceWorkerUrl?
Section titled “serviceWorkerUrl?”
optionalserviceWorkerUrl?: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’.