|
|
|
@ -235,8 +235,7 @@ namespace WebSocketSharp
|
|
|
|
throw new ArgumentException (msg, "url");
|
|
|
|
throw new ArgumentException (msg, "url");
|
|
|
|
|
|
|
|
|
|
|
|
if (protocols != null && protocols.Length > 0) {
|
|
|
|
if (protocols != null && protocols.Length > 0) {
|
|
|
|
msg = protocols.CheckIfValidProtocols ();
|
|
|
|
if (!checkProtocols (protocols, out msg))
|
|
|
|
if (msg != null)
|
|
|
|
|
|
|
|
throw new ArgumentException (msg, "protocols");
|
|
|
|
throw new ArgumentException (msg, "protocols");
|
|
|
|
|
|
|
|
|
|
|
|
_protocols = protocols;
|
|
|
|
_protocols = protocols;
|
|
|
|
|