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

Function spawn

packages/server/test/ws-handshake.e2e.test.ts:86–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84});
85
86async function spawn(): Promise<RunningServer> {
87 const r = await startServer({
88 serviceOverrides: [fixedTokenAuth()],
89 host: '127.0.0.1',
90 port: 0,
91 lockPath,
92 logger: pino({ level: 'silent' }),
93 coreProcessOptions: { homeDir: bridgeHome },
94 wsGatewayOptions: { pingIntervalMs: 60, pongTimeoutMs: 200 },
95 });
96 running.push(r);
97 return r;
98}
99
100function wsUrl(http: string): string {
101 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