MessagePort

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 sending of messages 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:

Variables

onmessage:Function

Methods

close ():Void

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

Throws:

null DOMError

start ():Void

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部