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

Function stopConnection

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

Source from the content-addressed store, hash-verified

142 * state must never kill it. Spawned sidecars (`child` set) are stopped as before.
143 */
144const stopConnection = async (conn: SidecarConnection): Promise<void> => {
145 if (conn.supervisedDaemon || !conn.child) return;
146 await stopSidecar(conn.child);
147};
148
149const webUrlForConnection = (conn: SidecarConnection): string => {
150 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