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 SharedWorkerGlobalScope object (the SharedWorker global scope) is accessible through the self keyword.