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 see any Websocket traffic in Charles Proxy #70

Closed
cleverClosure opened this issue Aug 27, 2019 · 2 comments
Closed

Can't see any Websocket traffic in Charles Proxy #70

cleverClosure opened this issue Aug 27, 2019 · 2 comments
Assignees
Labels

Comments

@cleverClosure
Copy link

I can't see any websocket traffic in Charles Proxy for some reason. I see http traffic though. And yes, the app successfully connects via websocket

@cleverClosure
Copy link
Author

Solved by pasting this code:

NSMutableDictionary *socksConfig = [(__bridge_transfer NSDictionary*)CFNetworkCopySystemProxySettings() mutableCopy]; id ip = socksConfig[@"HTTPSProxy"]; NSDictionary *proxySocksConfig = @{@"SOCKSProxy" : (ip ?: @"127.0.0.1"), @"SOCKSPort" : @(8889), @"SOCKSEnable" : @(YES)}; CFWriteStreamSetProperty(writeStream, kCFStreamPropertySOCKSProxy, (__bridge CFDictionaryRef)proxySocksConfig); CFReadStreamSetProperty(readStream, kCFStreamPropertySOCKSProxy, (__bridge CFDictionaryRef)proxySocksConfig);

in SRWebsocket.m after line 586

@WrathChaos
Copy link
Owner

WrathChaos commented Aug 31, 2019

Thank you for sharing @cleverClosure :) I will add this example on the README for Charles Proxy.

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

No branches or pull requests

2 participants