-
-
Save hotsen/0dd016093f818cd48ae765dfc27fd5e1 to your computer and use it in GitHub Desktop.
Fix WebSocket URL to debug on target
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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