|
|
|
@ -595,6 +595,13 @@ namespace WebSocketSharp
|
|
|
|
return opcode == Opcode.Text || opcode == Opcode.Binary;
|
|
|
|
return opcode == Opcode.Text || opcode == Opcode.Binary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
internal static bool IsHttpMethod (this string value, Version version)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return version == HttpVersion.Version10
|
|
|
|
|
|
|
|
? value.isHttpMethod10 ()
|
|
|
|
|
|
|
|
: value.isHttpMethod ();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
internal static bool IsPortNumber (this int value)
|
|
|
|
internal static bool IsPortNumber (this int value)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return value > 0 && value < 65536;
|
|
|
|
return value > 0 && value < 65536;
|
|
|
|
|