MCPcopy Create free account
hub / github.com/arctic-cli/interface / remove

Function remove

packages/arctic/src/pty/index.ts:177–189  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

175 }
176
177 export async function remove(id: string) {
178 const session = state().get(id)
179 if (!session) return
180 log.info("removing session", { id })
181 try {
182 session.process.kill()
183 } catch {}
184 for (const ws of session.subscribers) {
185 ws.close()
186 }
187 state().delete(id)
188 Bus.publish(Event.Deleted, { id })
189 }
190
191 export function resize(id: string, cols: number, rows: number) {
192 const session = state().get(id)

Callers

nothing calls this directly

Calls 4

stateFunction · 0.85
getMethod · 0.45
deleteMethod · 0.45
publishMethod · 0.45

Tested by

no test coverage detected