websocket
websocket可以挂代理吗,现在不挂代理访问不了
暂时还不支持。
可以通过其他手段,让他走代理吗?或者使用其它语言,难道只能部署在国外服务器吗
可以在options = ssl.optionsForClientTLS(hostname=urlparse(url).hostname)前面加上factory.proxy={'host':'127.0.0.1','port':10808}这句话吗
可以在options = ssl.optionsForClientTLS(hostname=urlparse(url).hostname)前面加上factory.proxy={'host':'127.0.0.1','port':10808}这句话吗

可以在options = ssl.optionsForClientTLS(hostname=urlparse(url).hostname)前面加上factory.proxy={'host':'127.0.0.1','port':10808}这句话吗
It doesn't work for me. It returns
Can't connect to server. Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectError'>: An error occurred while connecting: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion: Connection lost.
].
]. Retrying: 1
全局设置的也不行 在VPN情况下 google可以访问
但直接使用websocket-client可以用代理访问 emmm
已解决 1是可以配置全局代理 socks.set_default_proxy(socks.PROXY_TYPE_HTTP, "127.0.0.1", 10811) socket.socket = socks.socksocket 2使用官方的连接 会报证书问题 windows客户端可用以下解决 linux没有试 指定就可以了 os.environ['SSL_CERT_FILE'] = certifi.where()
@Mr-Yuanhe @ZeroDY @JDYG Can you try the method suggested by @Kiuyam above please? Unfortunately we don't know when we'll be able to tackle this part of the code.