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

25 lines (22 loc) 457 B
export as namespace PushKitWorker; export = attachPushKit; declare function attachPushKit( scope: ServiceWorker, config?: PushOption, defaultTitle?: String, defaultURL?: String, verbose?: boolean ): void; interface PushOption{ data?: Any, badge?: String, icon?: String, image?: String, lang?: String, renotify?: Boolean, requireInteraction?: Boolean, silent?: Boolean, tag?: String, timestamp?: Number, vibrate?:[Number] }