onmessage event

Fires a MessageEvent when data is received through a WebSocket connection.


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.


You can use this event to notify the app to process incoming data.

See also

WebSockets in Windows
WebSockets RFC 6455
The WebSocket API