MCPcopy
hub / github.com/callstack/agent-device / stopMetroCleanup

Function stopMetroCleanup

src/cli/commands/connection-runtime.ts:455–464  ·  view source on GitHub ↗
(
  cleanup: RemoteConnectionState['metro'] | undefined,
)

Source from the content-addressed store, hash-verified

453}
454
455export async function stopMetroCleanup(
456 cleanup: RemoteConnectionState['metro'] | undefined,
457): Promise<void> {
458 if (!cleanup) return;
459 try {
460 await stopMetroTunnel(cleanup);
461 } catch {
462 // Connection lifecycle cleanup must stay best-effort.
463 }
464}
465
466export async function stopReactDevtoolsCleanup(options: {
467 stateDir: string;

Callers 3

disconnectCommandFunction · 0.90

Calls 1

stopMetroTunnelFunction · 0.90

Tested by

no test coverage detected