WebIDLpedia

PushSubscription interface

Definition

Push API defines PushSubscription



[Exposed=(Window,Worker), SecureContext]
interface PushSubscription {
  readonly attribute USVString endpoint;
  readonly attribute EpochTimeStamp? expirationTime;
  [SameObject] readonly attribute PushSubscriptionOptions options;
  ArrayBuffer? getKey(PushEncryptionKeyName name);
  Promise<boolean> unsubscribe();

  PushSubscriptionJSON toJSON();
};

Methods and attributes that return objects implementing PushSubscription

Referring IDL interfaces/dictionaries