Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PushSubscription

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

interface PushSubscription {
readonly endpoint: string;
readonly expirationTime: EpochTimeStamp | null;
readonly options: PushSubscriptionOptions;
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
unsubscribe(): Promise<boolean>;
}
var PushSubscription: {
prototype: PushSubscription;
}
;

§Properties

§
readonly endpoint: string
[src]
§
readonly expirationTime: EpochTimeStamp | null
[src]

§Methods

§
getKey(name: PushEncryptionKeyName): ArrayBuffer | null
[src]
§
unsubscribe(): Promise<boolean>
[src]