Is Socket.IO-client c++ can connect to "https" server?
As title, my company use socket.io v3 or higher, I try to connect to server but there are no any connected message in server side!? The server was tested by Socket.IO client Tools([https://amritb.github.io/socketio-client-tool/])
I reference example as follow:

It's can not connect, as follows. sio::client h; h.connect("https://207.148.98.240:4000");
How to connect to "https"? Thank you.
Hi, if you want to use HTTPS you need to make sure that you built the TLS version of the socket.io C++ library. To do so you need to link against the OpenSSL libraries and pass the SIO_TLS preprocessor definition when compiling.
Hi,
After link "openssl" and define "SIO_TLS" but still error occur, please reference Code::Blocks setting as follows.


compiler error log:

search openssl file path:

I found many the same "openssl" file, which one is correct?
Thank you.
Hi to be able to compile OpenSSL on a raspberry pi you should install the libssl-dev package: sudo apt install libssl-dev
I had some issue when trying to open a socket with https (unsupported URI scheme). For future reference for people having the same issue as me; to fix it I had to change this:
target_link_libraries(project sioclient)->target_link_libraries(project sioclient sioclient_tls)- clone on branch
2.x-tlsinstead of2.x - install deps with
apt-get update && apt-get install -y libssl-dev