Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/yxz/typing/lib.dom.ts>PushSubscription

Deno Standard Extensions
Latest
interface PushSubscription
import { type PushSubscription } from "https://deno.land/x/yxz@0.32.0/typing/lib.dom.ts";

This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. Available only in secure contexts.

Properties

readonly
endpoint: string
readonly
options: PushSubscriptionOptions

Methods

getKey(name: PushEncryptionKeyName): ArrayBuffer | null
unsubscribe(): Promise<boolean>