This commit is contained in:
Benjamin Sergeant 2019-03-13 23:03:52 -07:00
parent 922d58eb59
commit ead9616d04
2 changed files with 0 additions and 11 deletions

View File

@ -11,7 +11,6 @@
#include <mutex> #include <mutex>
#include <atomic> #include <atomic>
#include <vector> #include <vector>
#include <unistd.h> // pipe
#ifdef _WIN32 #ifdef _WIN32
#include <BaseTsd.h> #include <BaseTsd.h>

View File

@ -96,16 +96,6 @@ namespace ix
std::string("Could not parse URL ") + url); 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"; bool tls = protocol == "wss";
std::string errorMsg; std::string errorMsg;
_socket = createSocket(tls, errorMsg); _socket = createSocket(tls, errorMsg);