EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

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

WebSocket
WebSockets in Windows
WebSockets RFC 6455
The WebSocket API

 

 

Afficher:
© 2014 Microsoft. Tous droits réservés.