node-webpush 🔔
    Preparing search index...

    Type Alias WebPushConfig

    type WebPushConfig = {
        fetch?: FetchLike;
        gcm?: { apiKey?: string | null };
        vapid: { privateKey: string; publicKey: string; subject: string | URL };
    }
    Index
    fetch?: FetchLike

    Override for the fetch implementation notify() uses to send the request. Defaults to the global fetch. Useful in runtimes without one, or to plug in a wrapped/instrumented fetch (retries, logging, proxying, etc.) - or to route around a host environment (e.g. a dev server) that's replaced the global fetch with something that mishandles the manually-set Content-Length header generateRequest() always sends.

    gcm?: { apiKey?: string | null }
    vapid: { privateKey: string; publicKey: string; subject: string | URL }