MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / boundAddress

Function boundAddress

packages/cli/src/server/portUtils.test.ts:41–47  ·  view source on GitHub ↗
(server: ServerType)

Source from the content-addressed store, hash-verified

39});
40
41function boundAddress(server: ServerType): string {
42 const addr = server.address();
43 if (addr === null || typeof addr === "string") {
44 throw new Error(`expected an AddressInfo, got ${JSON.stringify(addr)}`);
45 }
46 return addr.address;
47}
48
49async function startConfigProbeServer(payload: Record<string, unknown>): Promise<number> {
50 const server = createHttpServer((_req, res) => {

Callers 1

portUtils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected