MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / checkExistingDaemon

Function checkExistingDaemon

src/daemon.ts:50–63  ·  view source on GitHub ↗
(socketPath: string)

Source from the content-addressed store, hash-verified

48} from './utils/workspace-filesystem-lifecycle.ts';
49
50async function checkExistingDaemon(socketPath: string): Promise<boolean> {
51 return new Promise<boolean>((resolve) => {
52 const socket = net.createConnection(socketPath);
53
54 socket.on('connect', () => {
55 socket.end();
56 resolve(true);
57 });
58
59 socket.on('error', () => {
60 resolve(false);
61 });
62 });
63}
64
65function writeLine(text: string): void {
66 process.stdout.write(`${text}\n`);

Callers 1

mainFunction · 0.85

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected