Skip to content

enum HTTP::WebSocket::CloseCode

Members

NormalClosure = 1000

GoingAway = 1001

ProtocolError = 1002

UnsupportedData = 1003

NoStatusReceived = 1005

AbnormalClosure = 1006

InvalidFramePayloadData = 1007

PolicyViolation = 1008

MessageTooBig = 1009

MandatoryExtension = 1010

InternalServerError = 1011

ServiceRestart = 1012

TryAgainLater = 1013

BadGateway = 1014

TLSHandshake = 1015

Class methods

.new(close_code : Int32)

Create a new instance with the given close code, or raise an error if the close code given is not inside 0..4999.

View source

Methods

#abnormal_closure?

View source

#bad_gateway?

View source

#going_away?

View source

#internal_server_error?

View source

#invalid_frame_payload_data?

View source

#mandatory_extension?

View source

#message_too_big?

View source

#no_status_received?

View source

#normal_closure?

View source

#policy_violation?

View source

#protocol_error?

View source

#service_restart?

View source

#tls_handshake?

View source

#try_again_later?

View source

#unsupported_data?

View source