Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
onerror
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft