MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stopConnection

Function stopConnection

apps/desktop/src/main/index.ts:136–139  ·  view source on GitHub ↗
(conn: SidecarConnection)

Source from the content-addressed store, hash-verified

134 * state must never kill it. Spawned sidecars (`child` set) are stopped as before.
135 */
136const stopConnection = async (conn: SidecarConnection): Promise<void> => {
137 if (conn.supervisedDaemon || !conn.child) return;
138 await stopSidecar(conn.child);
139};
140
141const webUrlForConnection = (conn: SidecarConnection): string => {
142 const url = new URL(conn.baseUrl);

Callers 5

restartSidecarAndReloadFunction · 0.85
registerIpcHandlersFunction · 0.85
promptInstallUpdateFunction · 0.85
bootFunction · 0.85
index.tsFile · 0.85

Calls 1

stopSidecarFunction · 0.90

Tested by

no test coverage detected