Added the IsNoStatusCode (ushort) method
This commit is contained in:
parent
dc6250a0e3
commit
9a06b646d7
@ -584,6 +584,11 @@ namespace WebSocketSharp
|
|||||||
return value.StartsWith ("permessage-");
|
return value.StartsWith ("permessage-");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static bool IsNoStatusCode (this ushort code)
|
||||||
|
{
|
||||||
|
return code == (ushort) CloseStatusCode.NoStatusCode;
|
||||||
|
}
|
||||||
|
|
||||||
internal static bool IsPortNumber (this int value)
|
internal static bool IsPortNumber (this int value)
|
||||||
{
|
{
|
||||||
return value > 0 && value < 65536;
|
return value > 0 && value < 65536;
|
||||||
|
Loading…
Reference in New Issue
Block a user