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

Can't set enableSOCKSProxy true #1104

Closed
KonstantinEfimenko opened this issue Mar 30, 2020 · 13 comments
Closed

Can't set enableSOCKSProxy true #1104

KonstantinEfimenko opened this issue Mar 30, 2020 · 13 comments

Comments

@KonstantinEfimenko
Copy link

I can't track queries by Charles Proxy. Looks like it already was solved in Starscream daltoniam/Starscream@b074c6c, but I can't reach this property due to internal access level of websocket in WebSocketTransport

@designatednerd
Copy link
Contributor

I think we're trying to keep from directly exposing the web socket, but I can probably add a property to update this.

@designatednerd
Copy link
Contributor

Hey @fassko Can you think of any major wormholes I'm opening doing this? 😇

@fassko
Copy link
Contributor

fassko commented Mar 31, 2020

@designatednerd Hmm, honestly hard to say. I'm not so proficient about proxies. :)

About Starscream and Websockets our long term plan should be using Apple's provided Websocket solution anyways.

@designatednerd
Copy link
Contributor

Isn't Starscream already doing that under the hood?

Also we support back to iOS 9 so it's gonna be a WHILE before we can drop the non-apple stuff 😭

@designatednerd designatednerd added this to the Next Release milestone Mar 31, 2020
@fassko
Copy link
Contributor

fassko commented Mar 31, 2020

Maybe it does, but I have not used it myself. Currently I won't have time to look into that cause I'm dealing with all the mess going on on the planet right now.

@designatednerd
Copy link
Contributor

TOTALLY fair! My productivity has been 💩the last few weeks myself.

@designatednerd
Copy link
Contributor

Shipped with 0.25.0. Up for SPM and Carthage, publishing to CocoaPods trunk now.

@Robuske
Copy link

Robuske commented Apr 8, 2021

Hey @KonstantinEfimenko , how did you setup Charles to watch for subscriptions? I tried several different configurations (after setting enableSOCKSProxy to true), but none seem to work 😞

@designatednerd
Copy link
Contributor

Heads up that this has been removed in more recent versions because Starscream itself removed support for it - I have a sneaking suspicion it may have been a bit flaky.

@Robuske
Copy link

Robuske commented Apr 9, 2021

Oh... I am using an outdated version at the moment because we had no time to upgrade =/
Is there any alternative to subscription debugging @designatednerd?

@designatednerd
Copy link
Contributor

Using the debugger to pause on new items or to print new data received is probably going to be your best bet.

@DanielKrofchick
Copy link

It's a bit unclear to me from the discussion above. Can someone confirm if Apollo Subscriptions can or cannot be monitored using Charles, and if so how?

@designatednerd
Copy link
Contributor

It was possible before we upgraded to Starscream 4.0. Starscream 4.0 removed support for SOCKS proxying, and so we consequently had to remove support for it as well, unfortunately.

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

5 participants