Liking cljdoc? Tell your friends :D

web.SharedWorkerGlobalScope

The SharedWorkerGlobalScope object (the web.SharedWorker global is accessible through the web.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.SharedWorker` global
is accessible through the `web.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.SharedWorkerGlobalScope returns the web.ApplicationCache object for the worker (see the 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.SharedWorkerGlobalScope`
returns the `web.ApplicationCache` object for the worker (see
the application cache).

`var nameObj = self.applicationCache;`

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

closecljs

(close this)

Method.

The close() method of the web.SharedWorkerGlobalScope interface any tasks queued in the SharedWorkerGlobalScope's event loop, 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.SharedWorkerGlobalScope` interface
any tasks queued in the SharedWorkerGlobalScope's event loop,
closing this particular scope.

`self.close();`

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

consolecljs

(console this)

Property.

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

var consoleObj = self.console;

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

Property.

The console read-only property of the `web.WorkerGlobalScope`
returns a `web.Console` object providing access to the browser
for 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.

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

dump('My message\\n');

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

Method.

The dump() method of the `web.WorkerGlobalScope` interface allows
to write a message to stdout — i.e. in your terminal, in Firefox
This is the same as Firefox's `web.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.WorkerGlobalScope interface 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.WorkerGlobalScope` interface
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.

The location read-only property of the web.WorkerGlobalScope returns the web.WorkerLocation associated with the worker. is a specific location object, mostly a subset of the web.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.

The location read-only property of the `web.WorkerGlobalScope`
returns the `web.WorkerLocation` associated with the worker.
is a specific location object, mostly a subset of the `web.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.

The name read-only property of the web.SharedWorkerGlobalScope returns the name that the web.SharedWorker was (optionally) when it was created. This is the name that the web.SharedWorker() can pass to get a reference to the web.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.SharedWorkerGlobalScope`
returns the name that the `web.SharedWorker` was (optionally)
when it was created. This is the name that the `web.SharedWorker()`
can pass to get a reference to the `web.SharedWorkerGlobalScope`.

`var nameObj = self.name;`

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

(navigator this)

Property.

The navigator read-only property of the web.WorkerGlobalScope returns the web.WorkerNavigator associated with the worker. is a specific navigator object, mostly a subset of the web.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.

The navigator read-only property of the `web.WorkerGlobalScope`
returns the `web.WorkerNavigator` associated with the worker.
is a specific navigator object, mostly a subset of the `web.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

onconnectcljs

(onconnect this)

Property.

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

onconnect = function() { ... };

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

Property.

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

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

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

performancecljs

(performance this)

Property.

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

var perfObj = self.performance;

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

Property.

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

`var perfObj = self.performance;`

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

selfcljs

(self this)

Property.

The self read-only property of the web.WorkerGlobalScope interface a reference to the WorkerGlobalScope itself. Most of the time is a specific scope like web.DedicatedWorkerGlobalScope, web.SharedWorkerGlobalScope, web.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.WorkerGlobalScope` interface
a reference to the WorkerGlobalScope itself. Most of the time
is a specific scope like `web.DedicatedWorkerGlobalScope`, `web.SharedWorkerGlobalScope`,
`web.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.SharedWorkerGlobalScope returns the web.ApplicationCache object for the worker (see the 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.SharedWorkerGlobalScope`
returns the `web.ApplicationCache` object for the worker (see
the application cache).

`var nameObj = self.applicationCache;`

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

set-location!cljs

(set-location! this val)

Property.

The location read-only property of the web.WorkerGlobalScope returns the web.WorkerLocation associated with the worker. is a specific location object, mostly a subset of the web.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.

The location read-only property of the `web.WorkerGlobalScope`
returns the `web.WorkerLocation` associated with the worker.
is a specific location object, mostly a subset of the `web.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

set-name!cljs

(set-name! this val)

Property.

The name read-only property of the web.SharedWorkerGlobalScope returns the name that the web.SharedWorker was (optionally) when it was created. This is the name that the web.SharedWorker() can pass to get a reference to the web.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.SharedWorkerGlobalScope`
returns the name that the `web.SharedWorker` was (optionally)
when it was created. This is the name that the `web.SharedWorker()`
can pass to get a reference to the `web.SharedWorkerGlobalScope`.

`var nameObj = self.name;`

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

set-navigator!cljs

(set-navigator! this val)

Property.

The navigator read-only property of the web.WorkerGlobalScope returns the web.WorkerNavigator associated with the worker. is a specific navigator object, mostly a subset of the web.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.

The navigator read-only property of the `web.WorkerGlobalScope`
returns the `web.WorkerNavigator` associated with the worker.
is a specific navigator object, mostly a subset of the `web.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

set-onconnect!cljs

(set-onconnect! this val)

Property.

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

onconnect = function() { ... };

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

Property.

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

`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.WorkerGlobalScope interface a reference to the WorkerGlobalScope itself. Most of the time is a specific scope like web.DedicatedWorkerGlobalScope, web.SharedWorkerGlobalScope, web.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.WorkerGlobalScope` interface
a reference to the WorkerGlobalScope itself. Most of the time
is a specific scope like `web.DedicatedWorkerGlobalScope`, `web.SharedWorkerGlobalScope`,
`web.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