open-webrtc-toolkit / owt-client-native

Open WebRTC Toolkit client SDK for native Windows/Linux/iOS applications.
https://01.org/open-webrtc-toolkit
Apache License 2.0
393 stars 181 forks source link

can not join room when owt-server portal was https #364

Open keycodingyfq opened 4 years ago

keycodingyfq commented 4 years ago

I think it might be a bug. I find it in the conferencesocketsignalingchannel.cc HTTP is forced to be used.

std::string scheme("http://");
std::string host;
rtc::GetStringFromJsonObject(json_token, "host", &host);
......
socket_client_->connect(scheme.append(host)); 

In the OWT server, portal can be configured to use SSL,if i set the ssl is true in portal.toml i can not join the room

jianjunz commented 4 years ago

Hi,

scheme is ignored actually. It's determined by which socket.io cpp library is linked.