InterfaceWebPushSubscription

Represents a subscription to the push streaming server.

interface WebPushSubscription {
    alerts: WebPushSubscriptionAlerts;
    endpoint: string;
    id: string;
    policy: WebPushSubscriptionPolicy;
    serverKey: string;
}

Properties

Which alerts should be delivered to the endpoint.

endpoint: string

Where push alerts will be sent to.

id: string

The id of the push subscription in the database.

serverKey: string

The streaming server's VAPID key.