Liking cljdoc? Tell your friends :D

web.workers.DedicatedWorkerGlobalScope

The DedicatedWorkerGlobalScope object (the web.workers.Worker scope) is accessible through the self keyword. Some additional functions, namespaces objects, and constructors, not typically with the worker global scope, but available on it, are listed the JavaScript Reference. See also: Functions available to workers.

The DedicatedWorkerGlobalScope object (the `web.workers.Worker`
scope) is accessible through the `self` keyword. Some additional
functions, namespaces objects, and constructors, not typically
with the worker global scope, but available on it, are listed
the JavaScript Reference. See also: Functions available to workers.
raw docstring

atobcljs

(atob this & args)

Method.

Decodes a string of data which has been encoded using base-64

Method.

Decodes a string of data which has been encoded using base-64
sourceraw docstring

btoacljs

(btoa this & args)

Method.

Creates a base-64 encoded ASCII string from a string of binary

Method.

Creates a base-64 encoded ASCII string from a string of binary
sourceraw docstring

clear-intervalcljs

(clear-interval this & args)

Method.

Cancels the repeated execution set using WindowTimers.setInterval().

Method.

Cancels the repeated execution set using WindowTimers.setInterval().
sourceraw docstring

clear-timeoutcljs

(clear-timeout this & args)

Method.

Cancels the repeated execution set using WindowTimers.setTimeout().

Method.

Cancels the repeated execution set using WindowTimers.setTimeout().
sourceraw docstring

closecljs

(close this)

Method.

The close() method of the web.workers.DedicatedWorkerGlobalScope discards any tasks queued in the DedicatedWorkerGlobalScope's loop, effectively closing this particular scope.

self.close();

See also: https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/close

Method.

The close() method of the `web.workers.DedicatedWorkerGlobalScope`
discards any tasks queued in the DedicatedWorkerGlobalScope's
loop, effectively closing this particular scope.

`self.close();`

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

consolecljs

(console this)

Property.

[Read Only] [Non Standard]

The console read-only property of the web.workers.WorkerGlobalScope returns a Console object providing access to the browser console the worker.

var consoleObj = self.console;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/console

Property.

[Read Only]
[Non Standard]

The console read-only property of the `web.workers.WorkerGlobalScope`
returns a `Console` object providing access to the browser console
the worker.

`var consoleObj = self.console;`

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

dumpcljs

(dump this & args)

Method.

[Non Standard]

The dump() method of the web.workers.WorkerGlobalScope interface you to write a message to stdout — i.e. in your terminal, in only. This is the same as Firefox's window.dump, but for workers.

dump('My message\\n');

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/dump

Method.

[Non Standard]

The dump() method of the `web.workers.WorkerGlobalScope` interface
you to write a message to stdout — i.e. in your terminal, in
only. This is the same as Firefox's `window.dump`, but for workers.

`dump('My message\\n');`

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

import-scriptscljs

(import-scripts this & args)

Method.

The importScripts() method of the web.workers.WorkerGlobalScope synchronously imports one or more scripts into the worker's scope.

self.importScripts('foo.js'); self.importScripts('foo.js', 'bar.js', ...);

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts

Method.

The importScripts() method of the `web.workers.WorkerGlobalScope`
synchronously imports one or more scripts into the worker's scope.

`self.importScripts('foo.js');
self.importScripts('foo.js', 'bar.js', ...);`

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

locationcljs

(location this)

Property.

[Read Only]

The location read-only property of the web.workers.WorkerGlobalScope returns the web.workers.WorkerLocation associated with the It is a specific location object, mostly a subset of the web.dom.Location browsing scopes, but adapted to workers.

var locationObj = self.location;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location

Property.

[Read Only]

The location read-only property of the `web.workers.WorkerGlobalScope`
returns the `web.workers.WorkerLocation` associated with the
It is a specific location object, mostly a subset of the `web.dom.Location`
browsing scopes, but adapted to workers.

`var locationObj = self.location;`

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

namecljs

(name this)

Property.

[Read Only]

The name read-only property of the web.workers.DedicatedWorkerGlobalScope returns the name that the web.workers.Worker was (optionally) when it was created. This is the name that the Worker() constructor pass to get a reference to the web.workers.DedicatedWorkerGlobalScope.

var nameObj = self.name;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/name

Property.

[Read Only]

The name read-only property of the `web.workers.DedicatedWorkerGlobalScope`
returns the name that the `web.workers.Worker` was (optionally)
when it was created. This is the name that the `Worker()` constructor
pass to get a reference to the `web.workers.DedicatedWorkerGlobalScope`.

`var nameObj = self.name;`

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

(navigator this)

Property.

[Read Only]

The navigator read-only property of the web.workers.WorkerGlobalScope returns the web.workers.WorkerNavigator associated with the It is a specific navigator object, mostly a subset of the web.performance.Navigator browsing scopes, but adapted to workers.

var navigatorObj = self.navigator;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator

Property.

[Read Only]

The navigator read-only property of the `web.workers.WorkerGlobalScope`
returns the `web.workers.WorkerNavigator` associated with the
It is a specific navigator object, mostly a subset of the `web.performance.Navigator`
browsing scopes, but adapted to workers.

`var navigatorObj = self.navigator;`

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

onmessagecljs

(onmessage this)

Property.

The onmessage property of the web.workers.DedicatedWorkerGlobalScope represents an EventHandler to be called when the message event and bubbles through the web.workers.Worker — i.e. when a message sent to the worker using the Worker.postMessage method.

self.onmessage = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessage

Property.

The onmessage property of the `web.workers.DedicatedWorkerGlobalScope`
represents an `EventHandler` to be called when the message event
and bubbles through the `web.workers.Worker` — i.e. when a message
sent to the worker using the `Worker.postMessage` method.

`self.onmessage = function() { ... };`

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

onmessageerrorcljs

(onmessageerror this)

Property.

The onmessageerror event handler of the web.workers.DedicatedWorkerGlobalScope is an web.other.EventListener, called whenever an web.workers.MessageEvent type messageerror is fired on the worker—that is, when it receives message that cannot be deserialized.

onmessageerror = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessageerror

Property.

The onmessageerror event handler of the `web.workers.DedicatedWorkerGlobalScope`
is an `web.other.EventListener`, called whenever an `web.workers.MessageEvent`
type messageerror is fired on the worker—that is, when it receives
message that cannot be deserialized.

`onmessageerror = function() { ... };`

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

performancecljs

(performance this)

Property.

[Read Only]

The performance read-only property of the web.workers.WorkerGlobalScope returns a web.performance.Performance object to be used on worker.

var perfObj = self.performance;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/performance

Property.

[Read Only]

The performance read-only property of the `web.workers.WorkerGlobalScope`
returns a `web.performance.Performance` object to be used on
worker.

`var perfObj = self.performance;`

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

post-messagecljs

(post-message this a-message transfer-list)

Method.

The postMessage() method of the web.workers.DedicatedWorkerGlobalScope sends a message to the main thread that spawned it. This accepts single parameter, which is the data to send to the worker. The may be any value or JavaScript object handled by the structured algorithm, which includes cyclical references.

postMessage(aMessage, transferList);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/postMessage

Method.

The postMessage() method of the `web.workers.DedicatedWorkerGlobalScope`
sends a message to the main thread that spawned it. This accepts
single parameter, which is the data to send to the worker. The
may be any value or JavaScript object handled by the structured
algorithm, which includes cyclical references.

`postMessage(aMessage, transferList);`

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

selfcljs

(self this)

Property.

[Read Only]

The self read-only property of the web.workers.WorkerGlobalScope returns a reference to the WorkerGlobalScope itself. Most of time it is a specific scope like web.workers.DedicatedWorkerGlobalScope, or web.workers.ServiceWorkerGlobalScope.

var selfRef = self;

See also: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self

Property.

[Read Only]

The self read-only property of the `web.workers.WorkerGlobalScope`
returns a reference to the WorkerGlobalScope itself. Most of
time it is a specific scope like `web.workers.DedicatedWorkerGlobalScope`,
or `web.workers.ServiceWorkerGlobalScope`.

`var selfRef = self;`

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

set-intervalcljs

(set-interval this & args)

Method.

Schedules the execution of a function every X milliseconds.

Method.

Schedules the execution of a function every X milliseconds.
sourceraw docstring

set-onmessage!cljs

(set-onmessage! this val)

Property.

The onmessage property of the web.workers.DedicatedWorkerGlobalScope represents an EventHandler to be called when the message event and bubbles through the web.workers.Worker — i.e. when a message sent to the worker using the Worker.postMessage method.

self.onmessage = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessage

Property.

The onmessage property of the `web.workers.DedicatedWorkerGlobalScope`
represents an `EventHandler` to be called when the message event
and bubbles through the `web.workers.Worker` — i.e. when a message
sent to the worker using the `Worker.postMessage` method.

`self.onmessage = function() { ... };`

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

set-onmessageerror!cljs

(set-onmessageerror! this val)

Property.

The onmessageerror event handler of the web.workers.DedicatedWorkerGlobalScope is an web.other.EventListener, called whenever an web.workers.MessageEvent type messageerror is fired on the worker—that is, when it receives message that cannot be deserialized.

onmessageerror = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessageerror

Property.

The onmessageerror event handler of the `web.workers.DedicatedWorkerGlobalScope`
is an `web.other.EventListener`, called whenever an `web.workers.MessageEvent`
type messageerror is fired on the worker—that is, when it receives
message that cannot be deserialized.

`onmessageerror = function() { ... };`

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

set-timeoutcljs

(set-timeout this & args)

Method.

Sets a delay for executing a function.

Method.

Sets a delay for executing a function.
sourceraw docstring

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

× close