Skip to content

Instantly share code, notes, and snippets.

@mschwartz
Created November 20, 2015 18:48
Show Gist options
  • Save mschwartz/d812b36b080161c90337 to your computer and use it in GitHub Desktop.
Save mschwartz/d812b36b080161c90337 to your computer and use it in GitHub Desktop.
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