haXe API Documentation
Back | Index
extern class js.html.MessageEvent
extends Event
Available in js

DRAFT
This page is not complete.

A MessageEvent is sent to clients using WebSockets when data is received from the server. This is delivered to the listener indicated by the WebSocket object's onmessage attribute.



Documentation for this class was provided by MDN.

var data(default,null) : Dynamic
The data from the server.
var lastEventId(default,null) : String
var origin(default,null) : String
var ports(default,null) : Array<Dynamic>
var source(default,null) : DOMWindow
function new(type : String, ?canBubble : Bool, ?cancelable : Bool) : Void
function initMessageEvent(typeArg : String, canBubbleArg : Bool, cancelableArg : Bool, dataArg : Dynamic, originArg : String, lastEventIdArg : String, sourceArg : DOMWindow, transferables : Array<Dynamic>) : Void
Back | Index