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

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

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

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>