MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / createCodexConnectTimeoutError

Function createCodexConnectTimeoutError

src/providers/codex/app_client.ts:4531–4544  ·  view source on GitHub ↗
({
  command,
  url,
  stderrTail,
}: {
  command: string;
  url: string;
  stderrTail: string[];
})

Source from the content-addressed store, hash-verified

4529}
4530
4531function createCodexConnectTimeoutError({
4532 command,
4533 url,
4534 stderrTail,
4535}: {
4536 command: string;
4537 url: string;
4538 stderrTail: string[];
4539}): Error {
4540 const detail = stderrTail.length > 0
4541 ? ` Last stderr: ${stderrTail.join(' | ')}`
4542 : '';
4543 return new Error(`Timed out connecting to ${url} after launching "${command}".${detail}`);
4544}
4545
4546async function reservePort(): Promise<number> {
4547 return new Promise<number>((resolve, reject) => {

Callers 1

connectWebSocketMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected