CloseInfo

Constructors

this
this()
Undocumented in source.
this
this(ByteBuffer payload, bool validate)

Parse the Close WebSocketFrame payload.

this
this(WebSocketFrame frame)
Undocumented in source.
this
this(WebSocketFrame frame, bool validate)
Undocumented in source.
this
this(int statusCode)
Undocumented in source.
this
this(int statusCode, string reason)

Create a CloseInfo, trimming the reason to {@link CloseStatus#MAX_REASON_PHRASE} UTF-8 bytes if needed.

Members

Functions

asFrame
CloseFrame asFrame()
Undocumented in source. Be warned that the author may not have intended to support it.
getReason
string getReason()
Undocumented in source. Be warned that the author may not have intended to support it.
getStatusCode
int getStatusCode()
Undocumented in source. Be warned that the author may not have intended to support it.
isAbnormal
bool isAbnormal()
Undocumented in source. Be warned that the author may not have intended to support it.
isHarsh
bool isHarsh()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta