MCPcopy Create free account
hub / github.com/tiann/hapi / switchSession

Method switchSession

web/src/api/client.ts:479–484  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

477 }
478
479 async switchSession(sessionId: string): Promise<void> {
480 await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/switch`, {
481 method: 'POST',
482 body: JSON.stringify({})
483 })
484 }
485
486 async setPermissionMode(sessionId: string, mode: PermissionMode): Promise<void> {
487 await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/permission-mode`, {

Callers 1

useSessionActionsFunction · 0.45

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected