MCPcopy Index your code
hub / github.com/coder/coder / stopWorkspaceProxy

Function stopWorkspaceProxy

site/e2e/proxy.ts:29–36  ·  view source on GitHub ↗
(cp: ChildProcess)

Source from the content-addressed store, hash-verified

27};
28
29export const stopWorkspaceProxy = async (cp: ChildProcess) => {
30 exec(`kill ${cp.pid}`, (error) => {
31 if (error) {
32 throw new Error(`exec error: ${JSON.stringify(error)}`);
33 }
34 });
35 await waitUntilUrlIsNotResponding(`http://127.0.0.1:${workspaceProxyPort}`);
36};

Callers 1

Calls 2

execFunction · 0.85

Tested by

no test coverage detected