diff --git a/ixwebsocket/IXSocket.h b/ixwebsocket/IXSocket.h index 65f335ba..88f8725a 100644 --- a/ixwebsocket/IXSocket.h +++ b/ixwebsocket/IXSocket.h @@ -11,7 +11,6 @@ #include #include #include -#include // pipe #ifdef _WIN32 #include diff --git a/ixwebsocket/IXWebSocketTransport.cpp b/ixwebsocket/IXWebSocketTransport.cpp index b00c3369..0029e803 100644 --- a/ixwebsocket/IXWebSocketTransport.cpp +++ b/ixwebsocket/IXWebSocketTransport.cpp @@ -96,16 +96,6 @@ namespace ix std::string("Could not parse URL ") + url); } - if (protocol != "ws" && protocol != "wss") - { - std::stringstream ss; - ss << "Invalid protocol: " << protocol - << " for url " << url - << " . Supported protocols are ws and wss"; - - return WebSocketInitResult(false, 0, ss.str()); - } - bool tls = protocol == "wss"; std::string errorMsg; _socket = createSocket(tls, errorMsg);