Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Fix WebSocket URL to debug on target
- (instancetype)init
// return [self initWithURL:[RCTConvert NSURL:@"http://localhost:8081/debugger-proxy"]];
NSString *serverIP = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"SERVER_IP"];
NSString *debugUrlString = [NSString stringWithFormat:@"http://%@:8081/debugger-proxy", serverIP];
return [self initWithURL:[RCTConvert NSURL:debugUrlString]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment