public interface MessageEvent extends Event
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.
AT_TARGET, BEFORECOPY, BEFORECUT, BEFOREPASTE, BLUR, BUBBLING_PHASE, CAPTURING_PHASE, CHANGE, CLICK, CONTEXTMENU, COPY, CUT, DBLCLICK, DRAG, DRAGEND, DRAGENTER, DRAGLEAVE, DRAGOVER, DRAGSTART, DROP, ERROR, FOCUS, FOCUSIN, FOCUSOUT, INPUT, INVALID, KEYDOWN, KEYPRESS, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOUSEWHEEL, NONE, PASTE, RESIZE, SCROLL, SELECTSTART, SUBMIT, TOUCHCANCEL, TOUCHEND, TOUCHMOVE, TOUCHSTART, WEBKITANIMATIONEND, WEBKITANIMATIONITERATION, WEBKITANIMATIONSTART, WEBKITTRANSITIONEND
Modifier and Type | Method and Description |
---|---|
Object |
getData()
The data from the server.
|
String |
getLastEventId() |
String |
getOrigin() |
Indexable |
getPorts() |
Window |
getSource() |
void |
initMessageEvent(String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
Object dataArg,
String originArg,
String lastEventIdArg,
Window sourceArg,
Indexable messagePorts) |
void |
webkitInitMessageEvent(String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
Object dataArg,
String originArg,
String lastEventIdArg,
Window sourceArg,
Indexable transferables) |
getClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagation
Object getData()
String getLastEventId()
String getOrigin()
Indexable getPorts()
Window getSource()
void initMessageEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, Indexable messagePorts)
Copyright © 2016. All rights reserved.