This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Description
Hi,
In my app, I have difficulties with establishing WebSocket handshake while utilizing TransparentEndPoint. The connection fails each time.
I have made a closer Wireshark analysis:
- The browser request is properly forwarded to the webserver by the Proxy,
- The web server response (HTTP/1.1 101) is transferred to the Proxy but it is not forwarded to the Browser.
While debugging own code and the Titanium-Web-Proxy library I have traced the issue to this line inside of the src/Titanium.Web.Proxy/WebSocketHandler.cs:
if (!args.IsTransparent)
{
await clientStream.WriteResponseAsync(response, cancellationToken);
}
after removing the if the web socket connection seems to be established correctly by the embedded Chromium.
Could you please tell me what is the purpose of that check and could this be removed from the library code?
ver. 3.1.1301