Skip to content

PushService

Defined in: src/push.ts:334

new PushService(store, send?, genKeys?, now?, isActive?): PushService

Defined in: src/push.ts:339

SessionStore

SendFn = defaultSend

GenKeys = ...

() => number

() => boolean

True while a window is actively in use; such pushes are suppressed.

PushService

notify(input): Promise<boolean>

Defined in: src/push.ts:385

Returns true when at least one device actually received the push.

NotifyInput

Promise<boolean>


publicKey(): string

Defined in: src/push.ts:372

string


subscribe(sub, ua): void

Defined in: src/push.ts:376

PushSubInput

string

void


unsubscribe(endpoint): void

Defined in: src/push.ts:380

string

void