Class: Protocol::WebSocket::Error

Inherits:
HTTP::Error
  • Object
show all
Defined in:
lib/protocol/websocket/error.rb

Overview

Status codes as defined by <tools.ietf.org/html/rfc6455#section-7.4.1>.

Direct Known Subclasses

ProtocolError

Constant Summary collapse

NO_ERROR =

Indicates a normal closure, meaning that the purpose for which the connection was established has been fulfilled.

1000
GOING_AWAY =

Indicates that an endpoint is “going away”, such as a server going down or a browser having navigated away from a page.

1001
PROTOCOL_ERROR =

Indicates that an endpoint is terminating the connection due to a protocol error.

1002
INVALID_DATA =

Indicates that an endpoint is terminating the connection because it has received a type of data it cannot accept.

1003