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

x/ogone/src/ogone.dom.d.ts>PushSubscription

Advanced Web Composition for Future
Latest
interface PushSubscription
import { type PushSubscription } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

This Push API export 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>