Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

Deno Standard Extensions
Go to Latest
interface PushSubscription
import { type PushSubscription } from "https://deno.land/x/yxz@0.17.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>