(conn: SidecarConnection)
| 126 | * state must never kill it. Spawned sidecars (`child` set) are stopped as before. |
| 127 | */ |
| 128 | const stopConnection = async (conn: SidecarConnection): Promise<void> => { |
| 129 | if (conn.supervisedDaemon || !conn.child) return; |
| 130 | await stopSidecar(conn.child); |
| 131 | }; |
| 132 | |
| 133 | const webUrlForConnection = (conn: SidecarConnection): string => { |
| 134 | const url = new URL(conn.baseUrl); |
no test coverage detected