MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / preconnect

Function preconnect

app/middlewares/debuggerAPI.js:94–100  ·  view source on GitHub ↗
(fn, firstTimeout)

Source from the content-addressed store, hash-verified

92
93let preconnectTimeout
94const preconnect = async (fn, firstTimeout) => {
95 if (firstTimeout || (await checkPortStatus(port, host)) !== 'open') {
96 preconnectTimeout = setTimeout(() => preconnect(fn), 500)
97 return
98 }
99 socket = await fn()
100}
101
102const clearLogs = () => {
103 if (process.env.NODE_ENV !== 'development') {

Callers 2

connectToDebuggerProxyFunction · 0.85
setDebuggerLocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected