Added the IsSendable (CloseStatusCode) method

This commit is contained in:
sta 2015-01-23 16:31:26 +09:00
parent a74f109649
commit 85d77399cc

View File

@ -620,6 +620,11 @@ namespace WebSocketSharp
return !code.IsReserved () || code.IsNoStatusCode ();
}
internal static bool IsSendable (this CloseStatusCode code)
{
return !code.IsReserved () || code.IsNoStatusCode ();
}
internal static bool IsText (this string value)
{
var len = value.Length;