This topic has not yet been rated - Rate this topic

onmessage event

Fires when data is received through a WebSocket connection.

Syntax

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 Consumer Preview
WebSockets RFC 6455
The WebSocket API

 

 

Send comments about this topic to Microsoft

Build date: 11/8/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.