DedicatedWorkerGlobalScope
DedicatedWorkerGlobalScope
package js-html
extends WorkerGlobalScope › EventTarget
Available on jsThe
DedicatedWorkerGlobalScope
object (theWorker
global scope) is accessible through theself
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 also: Functions available to workers-Documentation DedicatedWorkerGlobalScope by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Variables
onmessage:Function
Is an EventHandler
representing the code to be called when the message
event is raised. These events are of type MessageEvent
and will be called when the worker receives a message from the document that started it (i.e. from the Worker.postMessage
method.)
Methods
postMessage (message:Dynamic, ?transfer:Array<Dynamic>):Void
Throws:
null |
DOMError |
---|
© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/DedicatedWorkerGlobalScope.html