SharedWorker
open class SharedWorker(scriptURL: TrustedScriptURL, options: String = definedExternally) : EventTarget, AbstractWorker(source)
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.