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

Is it possible to set proxy for WebSocket connections? #168

Closed
runapp opened this issue May 4, 2021 · 1 comment
Closed

Is it possible to set proxy for WebSocket connections? #168

runapp opened this issue May 4, 2021 · 1 comment

Comments

@runapp
Copy link

runapp commented May 4, 2021

Inspecting raw stream content is always helpful when debugging, especially for connection problems. But I found there's no way to set proxy for connection, neither does http(s)_proxy env take effect.
Am I missing something, or it's currently not supported? And will this feature ever be added to this crate?

@daniel-abramov
Copy link
Member

Currently our library does not implement any specific proxy support, but there is a tracking issue for that: snapview/tungstenite-rs#177

The idea was that we find some decent library that deals with proxy related logic and "integrate" it in tungstenite-rs as a feature (we don't want to code "our own" support for proxies as it would mean that we're not only designing a library for WebSockets, but instead do some sort of a web-framework which is not a purpose of tungstenite-rs since there are other things like warp that rely on tungstenite-rs / tokio-tungstenite for WebSocket support).

I'm going to close this particular issue as duplicate, feel free to continue discussion in the above mentioned issue ;)

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

No branches or pull requests

2 participants