MCPcopy
hub / github.com/coder/mux / getState

Method getState

src/node/utils/eventStore.ts:70–72  ·  view source on GitHub ↗

* Get in-memory state for a workspace. * Returns undefined if no state exists.

(workspaceId: string)

Source from the content-addressed store, hash-verified

68 * Returns undefined if no state exists.
69 */
70 getState(workspaceId: string): TState | undefined {
71 return this.stateMap.get(workspaceId);
72 }
73
74 /**
75 * Set in-memory state for a workspace.

Callers 5

eventStore.test.tsFile · 0.80
enterHookPhaseMethod · 0.80
appendOutputMethod · 0.80
endInitMethod · 0.80
getInitStateMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected