Package

org.scalajs.dom.experimental

sharedworkers

Permalink

package sharedworkers

Visibility
  1. Public
  2. All

Type Members

  1. class SharedWorker extends raw.EventTarget with webworkers.AbstractWorker

    Permalink

    The SharedWorker interface represents a specific kind of worker that can be accessed from several browsing contexts, such as several windows, iframes or even workers.

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

    MDN

    Annotations
    @RawJSType() @native()
    Example:
    1. var myWorker = new SharedWorker("aURL", name);
  2. trait SharedWorkerGlobalScope extends raw.EventTarget with WorkerGlobalScope

    Permalink

    The SharedWorkerGlobalScope object (the SharedWorker global scope) is accessible through the self keyword.

    The SharedWorkerGlobalScope object (the SharedWorker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See the complete list of functions available to workers.

    MDN

    Annotations
    @RawJSType() @native()

Value Members

  1. object SharedWorkerGlobalScope extends GlobalScope

    Permalink
    Annotations
    @native()

Ungrouped