enum HTTP::WebSocket::CloseCode
¶
Members¶
NormalClosure = 1000
¶
1000
GoingAway = 1001
¶
1001
ProtocolError = 1002
¶
1002
UnsupportedData = 1003
¶
1003
NoStatusReceived = 1005
¶
1005
AbnormalClosure = 1006
¶
1006
InvalidFramePayloadData = 1007
¶
1007
PolicyViolation = 1008
¶
1008
MessageTooBig = 1009
¶
1009
MandatoryExtension = 1010
¶
1010
InternalServerError = 1011
¶
1011
ServiceRestart = 1012
¶
1012
TryAgainLater = 1013
¶
1013
BadGateway = 1014
¶
1014
TLSHandshake = 1015
¶
1015
Class methods¶
.new(close_code : Int32)
¶
(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.