onmessage event
Fires a MessageEvent when data is received through a WebSocket connection.
Syntax
| Event Property | object.onmessage = handler; |
|---|---|
| addEventListener Method | object.addEventListener("message", handler, useCapture) |
Event handler parameters
- handler [in]
-
Type: Function
Event handler to call when data is received.
Remarks
You can use this event to notify the app to process incoming data.
See also
Show: