IXWebSocket icon indicating copy to clipboard operation
IXWebSocket copied to clipboard

Use of common socket between ix::WebSocket and ix::HttpClient

Open eddie0git opened this issue 2 years ago • 4 comments

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

eddie0git avatar Feb 02 '23 15:02 eddie0git