The PushSubscription interface of the Push API provides a subcription's URL endpoint and allows unsubscription from a push service.
The W3C Push API offers some exciting new functionality for developers to use in web applications: this article provides an introduction to getting Push notifications setup and running, with a simple demo.
The endpoint read-only property of the PushSubscription interface returns a DOMString containing the subscription ID associated with the push subscription.
The Push API gives web applications the ability to receive messages pushed to them from a server, whether or not the web app is in the foreground, or even currently loaded, on a user agent. This lets developers deliver asynchronous notifications and updates to users that opt in, resulting in better engagement with timely new content.
The register method is used to ask the system to request a new endpoint for notifications. This method has been superceded by PushManager.subscribe().
The registrations method is used to ask the system about existing push endpoint registrations.
The unregister() method was used to ask the system to unregister and delete the specified endpoint. In the updated API, a subscription is can be unregistered via the PushSubscription.unsubscribe() method.