Added checkIfAvailable (bool, bool, bool, bool, bool, bool) method

master
sta 10 years ago
parent 72302fba97
commit 3ba410bc2e

@ -676,6 +676,16 @@ namespace WebSocketSharp
: null; : null;
} }
private string checkIfAvailable (
bool client, bool server, bool connecting, bool open, bool closing, bool closed)
{
return !client && _client
? "This operation isn't available in the client."
: !server && !_client
? "This operation isn't available in the server."
: _readyState.CheckIfAvailable (connecting, open, closing, closed);
}
private string checkIfCanAccept () private string checkIfCanAccept ()
{ {
return _client return _client

Loading…
Cancel
Save