Added the IsSendable (ushort) method

This commit is contained in:
sta 2015-01-21 16:45:54 +09:00
parent 9a06b646d7
commit fa936b1743

View File

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