Spec-Zone.ru › 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:

  • https://developer.mozilla.org/en-US/docs/Web/API/MessagePort

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API