Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

websocket 支持 http proxy #97

Open
caohaizhang opened this issue Jun 18, 2024 · 2 comments
Open

websocket 支持 http proxy #97

caohaizhang opened this issue Jun 18, 2024 · 2 comments

Comments

@caohaizhang
Copy link

caohaizhang commented Jun 18, 2024

能否使用websockets_proxy 替换 websockets,令wss支持http proxy
https://github.com/racinette/websockets_proxy

以下是我本地调试,可以正常运行

from websockets_proxy import Proxy, proxy_connect
 
proxy = Proxy.from_url(self.proxy_url)
self.ws = await proxy_connect(self.wss_url, proxy=proxy, ping_interval=None, subprotocols=["json.reliable.webpubsub.azure.v1"])
@lanqian528
Copy link
Owner

现在已经可以强制不触发wss了,所以不用管这个,之后会考虑加进去

@caohaizhang
Copy link
Author

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants