A MessageEvent
is the interface representing a message received by a target, being a WebSocket
or a WebRTC RTCDataChannel
Documentation MessageEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Constructor
Variables
Returns a DOMString
, Blob
or an ArrayBuffer
containing the data send by the emitter.
Methods
initMessageEvent (type:String, bubbles:Bool, cancelable:Bool, data:Dynamic, origin:String, lastEventId:String, source:EitherType<Window, MessagePort>, ports:Array<MessagePort>):Void
… Do not use this anymore: use the MessageEvent.MessageEvent
constructor instead.