Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.PushSubscription

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.PushSubscription
import { type dom } from "https://deno.land/x/evt@v2.4.10/lib/types/index.ts";
const { PushSubscription } = dom;

This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.

Properties

readonly
endpoint: string
readonly
expirationTime: number | null
readonly
options: PushSubscriptionOptions

Methods

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