Results 1 - 3 of 3


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.
API Interface Reference SharedWorker Web Workers Workers


The port property of the SharedWorker interface returns a MessagePort object used to communicate and control the shared worker.
API port Property Reference SharedWorker Web Workers


The SharedWorker() constructor creates a SharedWorker object that executes the script at the specified URL. This script must obey the same-origin policy.
API Constructor Reference Shared Workers SharedWorker Web Workers