-
-
Notifications
You must be signed in to change notification settings - Fork 574
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
Feature: 使 websockets 支持 proxy #2908
Labels
enhancement
New feature or request
Comments
nb 本来就没有地方设置 proxy 吧 |
nb driver 抽象的 Request 有) |
nonebot2/nonebot/drivers/aiohttp.py Lines 161 to 179 in f540245
nonebot2/nonebot/drivers/websockets.py Lines 69 to 78 in f540245
如果通过nb的Adapter去建立websocket连接的话 |
看上去 websockets 短时间内不会支持 proxy,暂时先添加个 warning 提示吧。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
希望能解决的问题
目前
websockets
官方不支持proxy
python-websockets/websockets#364这导致
adapter-discord
在需要proxy
的时候不能正常工作 (还有其他适配器可能需要通过代理连接ws吗?)描述所需要的功能
但是有一些社区实现可以让
websockets
支持proxy
比如:racinette/websockets_proxy
我们是否可以在
NoneBot
内部使用/重新实现 这些补丁让websockets
支持proxy
P.S. 如果认为使用补丁不好的话,是否至少应该抛出警告,告知用户设置了无用的
proxy
?The text was updated successfully, but these errors were encountered: