UNPKG

pushkit

Version:

Everything you need to enable Web Push Notification in your Node.JS web application. Uses the browser's delivery channel to send push notification(Free of cost), which means no extra third-party service (except for the browser's own delivery channel). Wor

21 lines (19 loc) 445 B
export as namespace PushKitClient; interface PushKitClientInstance { supported: boolean; subscribed: boolean; key: string; reg?: ServiceWorkerRegistration; sub?: PushSubscription; handleRegistration( reg: ServiceWorkerRegistration ): Promise<PushSubscription | null>; } export = {PushKit}; // https://github.com/theanam/pushkit/pull/2 declare class PushKit { constructor( publickKey: string, verbose?: bolean ); }