Home > borogove > Client > subscribePush
Client.subscribePush() method
Signature:
subscribePush(reg: ServiceWorkerRegistration, push_service: string, vapid_key: {privateKey: CryptoKey, publicKey: CryptoKey}, grace?: number | null): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| reg | ServiceWorkerRegistration | |
| push_service | string | |
| vapid_key | {privateKey: CryptoKey, publicKey: CryptoKey} | |
| grace | number | null | (Optional) |
Returns:
void