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

Make SOCKS proxy support public #3076

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

tahirmt
Copy link
Contributor

@tahirmt tahirmt commented Jun 15, 2023

Closes #2788

This was originally added in #1108 but removed when Starscream was removed but for debugging tools like Charles, it is very useful to be able to see the web socket traffic.

I made the implementation non-breaking by using the sam approach of SOCKSProxyable protocol from #1108.

Added tests for WebSocketTransport but I couldn't find create tests of WebSocket due to how it is written.

@netlify
Copy link

netlify bot commented Jun 15, 2023

👷 Deploy request for apollo-ios-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 3a3ea57

Copy link
Member

@calvincestari calvincestari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, thanks for the contribution @tahirmt.

Added tests for WebSocketTransport but I couldn't find create tests of WebSocket due to how it is written.

Correct - some parts of the networking stack are difficult to work with at the moment, part of the motivation for the work to be done in 2.0.

@calvincestari
Copy link
Member

Merging - ignore the test failure, I understand what's going wrong and will fix it.

tl;dr - it's a CI/test configuration, not incorrect logic.

@calvincestari calvincestari merged commit f80aadb into apollographql:main Jun 15, 2023
@tahirmt tahirmt deleted the add-socks-proxy branch June 15, 2023 19:42
@AnthonyMDev AnthonyMDev mentioned this pull request Jun 15, 2023
7 tasks
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

Successfully merging this pull request may close these issues.

Restore ability to use SOCKS proxies for debugging
2 participants