Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Reconnect to debugger after reload
Summary: This diff allows re-connecting to the debugger websocket after reloading so that if, for example, metro has restarted, we'll reconnect to allow for debugging. Previously you would need to kill the app and re-open it to re-register the debugger websocket. Changelog: [iOS] [Fixed] Reconnect to debugger websocket after metro is restarted. Reviewed By: motiz88 Differential Revision: D18820399 fbshipit-source-id: ddbfa4476e70a6313c877a050ef2d77c04d1657e
- Loading branch information
1 parent
d9deee2
commit 13992f90e48fc11e0b7217ee6d9413f97c32268a
Showing
3 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
@@ -241,6 +241,11 @@ - (void)webSocket:(__unused RCTSRWebSocket *)webSocket didCloseWithCode:(__unuse | ||
} | ||
} | ||
|
||
- (bool)isConnected | ||
{ | ||
return _webSocket != nil; | ||
} | ||
|
||
- (void)connect | ||
{ | ||
if (_closed) { | ||