package js.html
extends WorkerGlobalScope › EventTarget
Available on js
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.
Documentation SharedWorkerGlobalScope by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
read onlyname:String
The name that the SharedWorker
was (optionally) given when it was created using the SharedWorker.SharedWorker
constructor. This is mainly useful for debugging purposes.
onconnect:Function
Is an EventHandler
representing the code to be called when the connect
event is raised — that is, when a MessagePort
connection is opened between the associated SharedWorker
and the main thread.
close():Void
Discards any tasks queued in the SharedWorkerGlobalScope
's event loop, effectively closing this particular scope.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/SharedWorkerGlobalScope.html