reason
Summary
Indicates the reason the server closed the WebSocket connection.
Property of apis/websocket/CloseEventapis/websocket/CloseEvent
Syntax
Note: This property is read-only.
var result = element.reason;
Return Value
Returns an object of type StringString
Reason string is specific to the particular server and sub-protocol.
Related specifications
- W3C WebSocket Specification
- W3C Candidate Recommendation
Attributions
Microsoft Developer Network: Windows Internet Explorer API reference Article