Added the IsSendable (CloseStatusCode) method
This commit is contained in:
parent
a74f109649
commit
85d77399cc
@ -620,6 +620,11 @@ namespace WebSocketSharp
|
|||||||
return !code.IsReserved () || code.IsNoStatusCode ();
|
return !code.IsReserved () || code.IsNoStatusCode ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static bool IsSendable (this CloseStatusCode 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