MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / spawn

Function spawn

packages/server/test/ws-resync.e2e.test.ts:71–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69});
70
71async function spawn(): Promise<RunningServer> {
72 const r = await startServer({
73 serviceOverrides: [fixedTokenAuth()],
74 host: '127.0.0.1',
75 port: 0,
76 lockPath,
77 logger: pino({ level: 'silent' }),
78 coreProcessOptions: { homeDir: bridgeHome },
79 wsGatewayOptions: { pingIntervalMs: 5_000, pongTimeoutMs: 5_000 },
80 });
81 running.push(r);
82 return r;
83}
84
85function wsUrl(http: string): string {
86 return http.replace(/^http:\/\//, 'ws://') + '/api/v1/ws';

Callers 1

Calls 3

startServerFunction · 0.90
fixedTokenAuthFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected