onerror event

Fires when an error occurs with a WebSocket connection.

Syntax

Event Property object.onerror = handler;
addEventListener Method object.addEventListener("error", handler, useCapture)

Event handler parameters

handler [in]

Type: Function

Event handler to call when an error occurs.

See also

WebSocket
WebSockets in Windows
WebSockets RFC 6455
The WebSocket API

 

 

Show:
© 2014 Microsoft