MCPcopy Create free account
hub / github.com/coder/mux / getWorkspaceSessionIds

Method getWorkspaceSessionIds

src/node/services/ptyService.ts:294–298  ·  view source on GitHub ↗

* Get all session IDs for a workspace. * Used by frontend to discover existing sessions to reattach to after reload.

(workspaceId: string)

Source from the content-addressed store, hash-verified

292 * Used by frontend to discover existing sessions to reattach to after reload.
293 */
294 getWorkspaceSessionIds(workspaceId: string): string[] {
295 return Array.from(this.sessions.entries())
296 .filter(([, session]) => session.workspaceId === workspaceId)
297 .map(([id]) => id);
298 }
299
300 /**
301 * Close all terminal sessions for a workspace

Callers 2

routerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected