MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / infoFor

Function infoFor

src/artifacts/live-registry.ts:44–56  ·  view source on GitHub ↗
(e: Entry)

Source from the content-addressed store, hash-verified

42const servers = new Map<string, Entry>();
43
44function infoFor(e: Entry): LiveInfo {
45 return {
46 id: e.handle.id,
47 url: e.handle.url,
48 port: e.handle.port,
49 token: e.handle.token,
50 uptimeMs: Date.now() - e.handle.startedAt,
51 clientCount: e.handle.clientCount(),
52 urls: e.urls,
53 tunnelUrl: e.tunnelUrl,
54 tunnelError: e.tunnelError,
55 };
56}
57
58async function closeEntry(e: Entry): Promise<void> {
59 try { e.tunnel?.close(); } catch { /* tunnel already gone */ }

Callers 1

startLiveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected