Liking cljdoc? Tell your friends :D

web.PushSubscription

The PushSubscription interface of the Push API provides a subcription's endpoint and allows unsubscription from a push service.

The PushSubscription interface of the Push API provides a subcription's
endpoint and allows unsubscription from a push service.
raw docstring

endpointcljs

(endpoint this)

Property.

The endpoint read-only property of the web.PushSubscription returns a web.USVString containing the endpoint associated the push subscription.

var myEnd = pushSubscription.endpoint;

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/endpoint

Property.

The endpoint read-only property of the `web.PushSubscription`
returns a `web.USVString` containing the endpoint associated
the push subscription.

`var myEnd = pushSubscription.endpoint;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/endpoint`
sourceraw docstring

expiration-timecljs

(expiration-time this)

Property.

The expirationTime read-only property of the web.PushSubscription returns a dom.DOMHighResTimeStamp of the subscription expiration associated with the push subscription, if there is one, or null

var expirationTime = pushSubscription.expirationTime

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/expirationTime

Property.

The expirationTime read-only property of the `web.PushSubscription`
returns a `dom.DOMHighResTimeStamp` of the subscription expiration
associated with the push subscription, if there is one, or null

`var expirationTime = pushSubscription.expirationTime`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/expirationTime`
sourceraw docstring

get-keycljs

(get-key this name)

Method.

The getKey() method of the web.PushSubscription interface returns web.ArrayBuffer representing a client public key, which can be sent to a server and used in encrypting push message data.

​var key = subscription.getKey(name);

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/getKey

Method.

The getKey() method of the `web.PushSubscription` interface returns
`web.ArrayBuffer` representing a client public key, which can
be sent to a server and used in encrypting push message data.

`​var key = subscription.getKey(name);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/getKey`
sourceraw docstring

optionscljs

(options this)

Property.

The options read-only property of the web.PushSubscription is an object containing containing the options used to create subscription.

var options = PushSubscription.options

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/options

Property.

The options read-only property of the `web.PushSubscription`
is an object containing containing the options used to create
subscription.

`var options = PushSubscription.options`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/options`
sourceraw docstring

set-endpoint!cljs

(set-endpoint! this val)

Property.

The endpoint read-only property of the web.PushSubscription returns a web.USVString containing the endpoint associated the push subscription.

var myEnd = pushSubscription.endpoint;

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/endpoint

Property.

The endpoint read-only property of the `web.PushSubscription`
returns a `web.USVString` containing the endpoint associated
the push subscription.

`var myEnd = pushSubscription.endpoint;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/endpoint`
sourceraw docstring

set-expiration-time!cljs

(set-expiration-time! this val)

Property.

The expirationTime read-only property of the web.PushSubscription returns a dom.DOMHighResTimeStamp of the subscription expiration associated with the push subscription, if there is one, or null

var expirationTime = pushSubscription.expirationTime

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/expirationTime

Property.

The expirationTime read-only property of the `web.PushSubscription`
returns a `dom.DOMHighResTimeStamp` of the subscription expiration
associated with the push subscription, if there is one, or null

`var expirationTime = pushSubscription.expirationTime`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/expirationTime`
sourceraw docstring

set-options!cljs

(set-options! this val)

Property.

The options read-only property of the web.PushSubscription is an object containing containing the options used to create subscription.

var options = PushSubscription.options

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/options

Property.

The options read-only property of the `web.PushSubscription`
is an object containing containing the options used to create
subscription.

`var options = PushSubscription.options`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/options`
sourceraw docstring

set-subscription-id!cljs

(set-subscription-id! this val)

Property.

The endpoint read-only property of the web.PushSubscription returns a dom.DOMString containing the subscription ID associated the push subscription.

var subId = pushSubscription.subscriptionId;

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/subscriptionId

Property.

The endpoint read-only property of the `web.PushSubscription`
returns a `dom.DOMString` containing the subscription ID associated
the push subscription.

`var subId = pushSubscription.subscriptionId;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/subscriptionId`
sourceraw docstring

subscription-idcljs

(subscription-id this)

Property.

The endpoint read-only property of the web.PushSubscription returns a dom.DOMString containing the subscription ID associated the push subscription.

var subId = pushSubscription.subscriptionId;

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/subscriptionId

Property.

The endpoint read-only property of the `web.PushSubscription`
returns a `dom.DOMString` containing the subscription ID associated
the push subscription.

`var subId = pushSubscription.subscriptionId;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/subscriptionId`
sourceraw docstring

to-jsoncljs

(to-json this)

Method.

The toJSON() method of the web.PushSubscription interface is standard serializer: it returns a JSON representation of the properties, providing a useful shortcut.

​mySubscription = subscription.toJSON()

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/toJSON

Method.

The toJSON() method of the `web.PushSubscription` interface is
standard serializer: it returns a JSON representation of the
properties, providing a useful shortcut.

`​mySubscription = subscription.toJSON()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/toJSON`
sourceraw docstring

unsubscribecljs

(unsubscribe this & args)

Method.

The unsubscribe() method of the web.PushSubscription interface a web.Promise that resolves to a web.Boolean when the current is successfully unsubscribed.

​PushSubscription.unsubscribe().then(function(Boolean) { ... });

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/unsubscribe

Method.

The unsubscribe() method of the `web.PushSubscription` interface
a `web.Promise` that resolves to a `web.Boolean` when the current
is successfully unsubscribed.

`​PushSubscription.unsubscribe().then(function(Boolean) { ... });`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/unsubscribe`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close