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

Function spawn

packages/server/test/host-origin.e2e.test.ts:70–82  ·  view source on GitHub ↗
(wsGatewayOptions?: WSGatewayOptions)

Source from the content-addressed store, hash-verified

68});
69
70async function spawn(wsGatewayOptions?: WSGatewayOptions): Promise<RunningServer> {
71 const r = await startServer({
72 serviceOverrides: [fixedTokenAuth()],
73 host: '127.0.0.1',
74 port: 0,
75 lockPath,
76 logger: pino({ level: 'silent' }),
77 coreProcessOptions: { homeDir: bridgeHome },
78 ...(wsGatewayOptions !== undefined ? { wsGatewayOptions } : {}),
79 });
80 running.push(r);
81 return r;
82}
83
84function wsUrl(http: string): string {
85 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