Liking cljdoc? Tell your friends :D

web.workers.SharedWorkerGlobalScope

The SharedWorkerGlobalScope object (the web.workers.SharedWorker 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 the complete list of functions to workers.

The SharedWorkerGlobalScope object (the `web.workers.SharedWorker`
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 the complete list of functions
to workers.
raw docstring

application-cachecljs

(application-cache this)

Property.

The applicationCache read-only property of the web.workers.SharedWorkerGlobalScope returns the ApplicationCache object for the worker (see Using application cache).

var nameObj = self.applicationCache;

See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/applicationCache

Property.

The applicationCache read-only property of the `web.workers.SharedWorkerGlobalScope`
returns the `ApplicationCache` object for the worker (see Using
application cache).

`var nameObj = self.applicationCache;`

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

closecljs

(close this)

Method.

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

self.close();

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

Method.

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

`self.close();`

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

namecljs

(name this)

Property.

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

var nameObj = self.name;

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

Property.

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

`var nameObj = self.name;`

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

onconnectcljs

(onconnect this)

Property.

The onconnect property of the web.workers.SharedWorkerGlobalScope is an event handler representing the code to be called when the event is raised — that is, when a web.other.MessagePort connection opened between the associated web.workers.SharedWorker and main thread.

onconnect = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect

Property.

The onconnect property of the `web.workers.SharedWorkerGlobalScope`
is an event handler representing the code to be called when the
event is raised — that is, when a `web.other.MessagePort` connection
opened between the associated `web.workers.SharedWorker` and
main thread.

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

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

selfcljs

(self this)

Property.

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.

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-application-cache!cljs

(set-application-cache! this val)

Property.

The applicationCache read-only property of the web.workers.SharedWorkerGlobalScope returns the ApplicationCache object for the worker (see Using application cache).

var nameObj = self.applicationCache;

See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/applicationCache

Property.

The applicationCache read-only property of the `web.workers.SharedWorkerGlobalScope`
returns the `ApplicationCache` object for the worker (see Using
application cache).

`var nameObj = self.applicationCache;`

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

set-name!cljs

(set-name! this val)

Property.

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

var nameObj = self.name;

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

Property.

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

`var nameObj = self.name;`

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

set-onconnect!cljs

(set-onconnect! this val)

Property.

The onconnect property of the web.workers.SharedWorkerGlobalScope is an event handler representing the code to be called when the event is raised — that is, when a web.other.MessagePort connection opened between the associated web.workers.SharedWorker and main thread.

onconnect = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect

Property.

The onconnect property of the `web.workers.SharedWorkerGlobalScope`
is an event handler representing the code to be called when the
event is raised — that is, when a `web.other.MessagePort` connection
opened between the associated `web.workers.SharedWorker` and
main thread.

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

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

set-self!cljs

(set-self! this val)

Property.

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.

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

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

× close