MCPcopy Index your code
hub / github.com/callstack/agent-device / destroySocket

Function destroySocket

test/integration/installed-package-metro.test.ts:16–18  ·  view source on GitHub ↗
(socket: Duplex | null)

Source from the content-addressed store, hash-verified

14const SUBPROCESS_TIMEOUT_MS = 120_000;
15
16function destroySocket(socket: Duplex | null): void {
17 socket?.destroy();
18}
19
20function readJson(stdout: string): any {
21 return JSON.parse(stdout);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected