Remove tlsOptions
This commit is contained in:
parent
3dce2ca488
commit
a536a9c918
@ -10,12 +10,7 @@ Websocket::Websocket(std::string host,
|
|||||||
ix::initNetSystem();
|
ix::initNetSystem();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ix::SocketTLSOptions options;
|
|
||||||
options.caFile = "CUSTOM";
|
|
||||||
options.tls = true;
|
|
||||||
|
|
||||||
webSocket = new ix::WebSocket();
|
webSocket = new ix::WebSocket();
|
||||||
webSocket->setTLSOptions(options);
|
|
||||||
webSocket->enableAutomaticReconnection();
|
webSocket->enableAutomaticReconnection();
|
||||||
webSocket->setUrl(host);
|
webSocket->setUrl(host);
|
||||||
webSocket->setOnMessageCallback([this](const ix::WebSocketMessagePtr &msg) {
|
webSocket->setOnMessageCallback([this](const ix::WebSocketMessagePtr &msg) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user