W3cubDocs

/Haxe JavaScript

MessagePort

package js.html

extends EventTarget

Available on js

The MessagePort interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.

Documentation MessagePort by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

onmessage:Function

onmessageerror:Function

Methods

close():Void

postMessage(message:Dynamic, ?transferable:Array<Dynamic>):Void

Throws:

null

DOMError

start():Void

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/MessagePort.html