CloseFrame.truncate

Truncate arbitrary reason into something that will fit into the CloseFrame limits.

@param reason the arbitrary reason to possibly truncate. @return the possibly truncated reason string.

class CloseFrame
static
string
truncate
(
string reason
)

Meta