Liking cljdoc? Tell your friends :D
ClojureScript only.

web.workers.SharedWorker

The SharedWorker interface represents a specific kind of worker can be accessed from several browsing contexts, such as several iframes or even workers. They implement an interface different dedicated workers and have a different global scope, web.workers.SharedWorkerGlobalScope.

The SharedWorker interface represents a specific kind of worker
can be accessed from several browsing contexts, such as several
iframes or even workers. They implement an interface different
dedicated workers and have a different global scope, `web.workers.SharedWorkerGlobalScope`.
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

portcljs

(port this)

Property.

[Read Only]

The port property of the web.workers.SharedWorker interface a web.other.MessagePort object used to communicate and control shared worker.

myWorker.port;

See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/port

Property.

[Read Only]

The port property of the `web.workers.SharedWorker` interface
a `web.other.MessagePort` object used to communicate and control
shared worker.

`myWorker.port;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/port`
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

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

× close