Titan Web代理中是否支持Websockets?

时间:2019-09-03 14:00:37

标签: c# websocket titanium-web-proxy

我正在尝试查看/修改对应用程序的websocket请求。当前,代理处于开启状态时,websocket似乎根本无法工作。

我尝试启动discord来测试它是否会监听WebSockets,discord甚至不会启动,它卡在下载更新程序上,我认为这意味着Titan代理正在对websocket请求进行某些操作。

我尝试使用预发行版本以及当前的稳定版本,但似乎都无法正常工作。

这是我正在使用的代码:

proxyServer = new ProxyServer();

proxyServer.CertificateManager.TrustRootCertificate();

proxyServer.BeforeRequest += InspectRequest;
proxyServer.BeforeResponse += InspectResponse;

var explicitEndPoint = new ExplicitProxyEndPoint(IPAddress.Any, 8000, true);

proxyServer.AddEndPoint(explicitEndPoint);
proxyServer.Start();

proxyServer.SetAsSystemHttpProxy(explicitEndPoint);
proxyServer.SetAsSystemHttpsProxy(explicitEndPoint);

InspectResponse和InspectRequest仅打印SessionEventArgs.HttpClient.Request.Url

我希望显示URL wss://gateway.discord.gg/?encoding=json&v=6&compress=zlib-stream,但从未显示过这样的URL(这是chrome开发人员工具中显示的URL,当启动discord时)。

是否有启用wss方案的方法,并且代理中是否支持websocket?

谢谢!

0 个答案:

没有答案