Added the IsSendable (ushort) method
This commit is contained in:
parent
9a06b646d7
commit
fa936b1743
@ -610,6 +610,11 @@ namespace WebSocketSharp
|
|||||||
code == CloseStatusCode.TlsHandshakeFailure;
|
code == CloseStatusCode.TlsHandshakeFailure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static bool IsSendable (this ushort code)
|
||||||
|
{
|
||||||
|
return !code.IsReserved () || code.IsNoStatusCode ();
|
||||||
|
}
|
||||||
|
|
||||||
internal static bool IsText (this string value)
|
internal static bool IsText (this string value)
|
||||||
{
|
{
|
||||||
var len = value.Length;
|
var len = value.Length;
|
||||||
|
Loading…
Reference in New Issue
Block a user