From ead9616d04af78ca64cfe0d7fb4a035e37953b93 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Wed, 13 Mar 2019 23:03:52 -0700 Subject: [PATCH] cleanup --- ixwebsocket/IXSocket.h | 1 - ixwebsocket/IXWebSocketTransport.cpp | 10 ---------- 2 files changed, 11 deletions(-) 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);