IXWebSocket
IXWebSocket copied to clipboard
Use of common socket between ix::WebSocket and ix::HttpClient
Hello. If I understood the code right (but I may be wrong), in case you have to do a few HTTP/HTTPS connections (for example for auth purposes) before finally upgrading from HTTP to WebSocket, there is no way you can use only one TCP socket but you have to use two separate sockets (one for plain http client and one for websocket). Is there a specific reason for this design choice? Could it be an improvement to declare an ix::WebSocket and share its socket when building the ix:HttpClient (for example by using a crafted additional constructor)? Thanks for the clarification Regards