socket.io-client-cpp icon indicating copy to clipboard operation
socket.io-client-cpp copied to clipboard

Support both HTTP(none tls) and HTTPS(tls) in one package?

Open MKMichaelMK opened this issue 6 years ago • 6 comments

Support both HTTP(none tls) and HTTPS(tls) in one package?

MKMichaelMK avatar Jul 16 '18 04:07 MKMichaelMK

I found that when compliled with tls, HTTP protocol doesn't work. When complied with none_tls,HTTPS protocol doesn't work. How to compiile the code to both support HTTP and HTTPS?

MKMichaelMK avatar Jul 16 '18 04:07 MKMichaelMK

Afaik, you can't not w/o modifying the code. My gut feeling is you'll have to add two different namespace to avoid clash.

DraconPern avatar Jul 17 '18 01:07 DraconPern

You would probably want to take a look at PR #137 .

jianjunz avatar Jul 17 '18 07:07 jianjunz

Thank you. Do you have plan to merge #137 into master?

MKMichaelMK avatar Jul 17 '18 13:07 MKMichaelMK

Unfortunately, I'm not the owner of this repository.

jianjunz avatar Jul 31 '18 01:07 jianjunz

@jianjunz Has anything changed? Rebuilding to support either http or https is terrible...

Miosss avatar Mar 17 '22 21:03 Miosss