[Modify] Remove it
This commit is contained in:
parent
45f0e8b6fc
commit
b4bcf2705b
@ -163,17 +163,6 @@ namespace WebSocketSharp
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static string CheckIfAvailable (
|
|
||||||
this WebSocketState state, bool connecting, bool open, bool closing, bool closed)
|
|
||||||
{
|
|
||||||
return (!connecting && state == WebSocketState.Connecting) ||
|
|
||||||
(!open && state == WebSocketState.Open) ||
|
|
||||||
(!closing && state == WebSocketState.Closing) ||
|
|
||||||
(!closed && state == WebSocketState.Closed)
|
|
||||||
? "This operation isn't available in: " + state.ToString ().ToLower ()
|
|
||||||
: null;
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static string CheckIfValidProtocols (this string[] protocols)
|
internal static string CheckIfValidProtocols (this string[] protocols)
|
||||||
{
|
{
|
||||||
return protocols.Contains (
|
return protocols.Contains (
|
||||||
|
Loading…
Reference in New Issue
Block a user