Skip to content

Commit 9cb2e63

Browse files
huntiemeta-codesync[bot]
authored andcommitted
Remove unused websocketProxyURL property (#56722)
Summary: Pull Request resolved: #56722 Remove `DevServerHelper.websocketProxyURL`, which constructed the URL for the legacy `/debugger-proxy` WebSocket endpoint. This property had no callers — the legacy remote JS debugging proxy has been superseded by `/inspector/device` and `/inspector/debug` endpoints (React Native DevTools CDP). Changelog: [Android][Removed] - Remove unused `DevServerHelper.websocketProxyURL` property (legacy remote JS debugger) ___ overriding_review_checks_triggers_an_audit_and_retroactive_review Oncall Short Name: react_native_iroc Differential Revision: D104253123 fbshipit-source-id: c20922a4a4f21d602e43049144352f6221b9ad99
1 parent 9f4513c commit 9cb2e63

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,6 @@ public class com/facebook/react/devsupport/DevServerHelper {
18451845
public fun getDevServerSplitBundleURL (Ljava/lang/String;)Ljava/lang/String;
18461846
public fun getSourceMapUrl (Ljava/lang/String;)Ljava/lang/String;
18471847
public fun getSourceUrl (Ljava/lang/String;)Ljava/lang/String;
1848-
public final fun getWebsocketProxyURL ()Ljava/lang/String;
18491848
public fun isPackagerRunning (Lcom/facebook/react/devsupport/interfaces/PackagerStatusCallback;)V
18501849
public final fun openDebugger (Lcom/facebook/react/bridge/ReactContext;Ljava/lang/String;Ljava/lang/String;)V
18511850
public final fun openInspectorConnection ()V

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ public open class DevServerHelper(
7878
public fun customCommandHandlers(): Map<String, RequestHandler>?
7979
}
8080

81-
public val websocketProxyURL: String
82-
get() =
83-
"${DevSupportHttpClient.wsScheme(packagerConnectionSettings.debugServerHost)}://${packagerConnectionSettings.debugServerHost}/debugger-proxy?role=client"
84-
8581
private enum class BundleType(val typeID: String) {
8682
BUNDLE("bundle"),
8783
MAP("map"),

0 commit comments

Comments
 (0)