class Error
Represents an error that occurred during the WebSocket protocol negotiation or communication. Status codes as defined by https://tools.ietf.org/html/rfc6455#section-7.4.1.
Definitions
NO_ERROR = 1000
Indicates a normal closure, meaning that the purpose for which the connection was established has been fulfilled.
GOING_AWAY = 1001
Indicates that an endpoint is "going away", such as a server going down or a browser having navigated away from a page.
PROTOCOL_ERROR = 1002
Indicates that an endpoint is terminating the connection due to a protocol error.
INVALID_DATA = 1003
Indicates that an endpoint is terminating the connection because it has received a type of data it cannot accept.