Skip to content

Make SOCKS proxy support public#3076

Merged
calvincestari merged 1 commit intoapollographql:mainfrom
tahirmt:add-socks-proxy
Jun 15, 2023
Merged

Make SOCKS proxy support public#3076
calvincestari merged 1 commit intoapollographql:mainfrom
tahirmt:add-socks-proxy

Conversation

@tahirmt
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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