Liking cljdoc? Tell your friends :D

web.workers.ServiceWorker

The ServiceWorker interface of the ServiceWorker API provides reference to a service worker. Multiple browsing contexts (e.g. workers, etc.) can be associated with the same service worker, through a unique ServiceWorker object.

The ServiceWorker interface of the ServiceWorker API provides
reference to a service worker. Multiple browsing contexts (e.g.
workers, etc.) can be associated with the same service worker,
through a unique ServiceWorker object.
raw docstring

onerrorcljs

(onerror this)

Property.

The AbstractWorker.onerror property of the web.workers.AbstractWorker represents an EventHandler, that is a function to be called the error event occurs and bubbles through the web.workers.Worker.

myWorker.onerror = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker/onerror

Property.

The AbstractWorker.onerror property of the `web.workers.AbstractWorker`
represents an `EventHandler`, that is a function to be called
the error event occurs and bubbles through the `web.workers.Worker`.

`myWorker.onerror = function() { ... };`

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

onstatechangecljs

(onstatechange this)

Property.

An web.EventListener property called whenever an event of type is fired; it is basically fired anytime the ServiceWorker.state

ServiceWorker.onstatechange = function(statechangeevent) { ... } ServiceWorker.addEventListener('statechange', function(statechangeevent) { ... } )

See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange

Property.

An `web.EventListener` property called whenever an event of type
is fired; it is basically fired anytime the `ServiceWorker.state`

`ServiceWorker.onstatechange = function(statechangeevent) { ... }
ServiceWorker.addEventListener('statechange', function(statechangeevent) { ... } )`

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

script-urlcljs

(script-url this)

Property.

Returns the ServiceWorker serialized script URL defined as part ServiceWorkerRegistration. Must be on the same origin as the that registers the ServiceWorker.

someURL = ServiceWorker.scriptURL

See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/scriptURL

Property.

Returns the ServiceWorker serialized script URL defined as part
ServiceWorkerRegistration. Must be on the same origin as the
that registers the ServiceWorker.

`someURL = ServiceWorker.scriptURL`

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

set-onerror!cljs

(set-onerror! this val)

Property.

The AbstractWorker.onerror property of the web.workers.AbstractWorker represents an EventHandler, that is a function to be called the error event occurs and bubbles through the web.workers.Worker.

myWorker.onerror = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker/onerror

Property.

The AbstractWorker.onerror property of the `web.workers.AbstractWorker`
represents an `EventHandler`, that is a function to be called
the error event occurs and bubbles through the `web.workers.Worker`.

`myWorker.onerror = function() { ... };`

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

set-onstatechange!cljs

(set-onstatechange! this val)

Property.

An web.EventListener property called whenever an event of type is fired; it is basically fired anytime the ServiceWorker.state

ServiceWorker.onstatechange = function(statechangeevent) { ... } ServiceWorker.addEventListener('statechange', function(statechangeevent) { ... } )

See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange

Property.

An `web.EventListener` property called whenever an event of type
is fired; it is basically fired anytime the `ServiceWorker.state`

`ServiceWorker.onstatechange = function(statechangeevent) { ... }
ServiceWorker.addEventListener('statechange', function(statechangeevent) { ... } )`

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

set-script-url!cljs

(set-script-url! this val)

Property.

Returns the ServiceWorker serialized script URL defined as part ServiceWorkerRegistration. Must be on the same origin as the that registers the ServiceWorker.

someURL = ServiceWorker.scriptURL

See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/scriptURL

Property.

Returns the ServiceWorker serialized script URL defined as part
ServiceWorkerRegistration. Must be on the same origin as the
that registers the ServiceWorker.

`someURL = ServiceWorker.scriptURL`

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

set-state!cljs

(set-state! this val)

Property.

The state read-only property of the web.workers.ServiceWorker returns a string representing the current state of the service It can be one of the following values: installing, installed, activated, or redundant.

someURL = ServiceWorker.state

See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state

Property.

The state read-only property of the `web.workers.ServiceWorker`
returns a string representing the current state of the service
It can be one of the following values: installing, installed,
activated, or redundant.

`someURL = ServiceWorker.state`

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

statecljs

(state this)

Property.

The state read-only property of the web.workers.ServiceWorker returns a string representing the current state of the service It can be one of the following values: installing, installed, activated, or redundant.

someURL = ServiceWorker.state

See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state

Property.

The state read-only property of the `web.workers.ServiceWorker`
returns a string representing the current state of the service
It can be one of the following values: installing, installed,
activated, or redundant.

`someURL = ServiceWorker.state`

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

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

× close