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

onerror event

Fires when an error occurs with a WebSocket connection.


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

WebSockets in Windows
WebSockets RFC 6455
The WebSocket API



© 2015 Microsoft