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;
toJSON(): PushSubscriptionJSON;
unsubscribe(): Promise<boolean>;
}var PushSubscription: {
prototype: PushSubscription;
new (): PushSubscription;
};§Properties
§
readonly expirationTime: EpochTimeStamp | null
[src]§
readonly options: PushSubscriptionOptions
[src]§Methods
§
getKey(name: PushEncryptionKeyName): ArrayBuffer | null
[src]§
toJSON(): PushSubscriptionJSON
[src]