Liking cljdoc? Tell your friends :D
ClojureScript only.

web.service-workers.PushMessageData

The PushMessageData interface of the Push API provides methods let you retrieve the push data sent by a server in various formats.

The PushMessageData interface of the Push API provides methods
let you retrieve the push data sent by a server in various formats.
raw docstring

array-buffercljs

(array-buffer this)

Method.

[Experimental]

The arrayBuffer()method of the web.service-workers.PushMessageData extracts push message data as an js.ArrayBuffer object.

var myArrayBuffer = PushEvent.data.arrayBuffer();

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/arrayBuffer

Method.

[Experimental]

The arrayBuffer()method of the `web.service-workers.PushMessageData`
extracts push message data as an `js.ArrayBuffer` object.

`var myArrayBuffer = PushEvent.data.arrayBuffer();`

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

blobcljs

(blob this)

Method.

[Experimental]

The blob()method of the web.service-workers.PushMessageData extracts push message data as a web.files.Blob object.

var myBlob = PushEvent.data.blob();

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/blob

Method.

[Experimental]

The blob()method of the `web.service-workers.PushMessageData`
extracts push message data as a `web.files.Blob` object.

`var myBlob = PushEvent.data.blob();`

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

jsoncljs

(json this)

Method.

[Experimental]

The json()method of the web.service-workers.PushMessageData extracts push message data by parsing it as a JSON string and the result.

var myData = PushEvent.data.json();

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/json

Method.

[Experimental]

The json()method of the `web.service-workers.PushMessageData`
extracts push message data by parsing it as a JSON string and
the result.

`var myData = PushEvent.data.json();`

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

textcljs

(text this)

Method.

[Experimental]

The text()method of the web.service-workers.PushMessageData extracts push message data as a plain text string.

var myText = PushEvent.data.text();

See also: https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/text

Method.

[Experimental]

The text()method of the `web.service-workers.PushMessageData`
extracts push message data as a plain text string.

`var myText = PushEvent.data.text();`

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

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

× close