MCPcopy Create free account
hub / github.com/CopilotKit/OpenGenerativeUI / setSession

Function setSession

apps/app/src/app/api/pick/store.ts:21–34  ·  view source on GitHub ↗
(sessionId: string, data: PickSession)

Source from the content-addressed store, hash-verified

19}
20
21export function setSession(sessionId: string, data: PickSession) {
22 sessions.set(sessionId, data);
23
24 // Reset expiry timer
25 const existing = timers.get(sessionId);
26 if (existing) clearTimeout(existing);
27 timers.set(
28 sessionId,
29 setTimeout(() => {
30 sessions.delete(sessionId);
31 timers.delete(sessionId);
32 }, EXPIRY_MS),
33 );
34}

Callers 3

GETFunction · 0.90
PUTFunction · 0.90
POSTFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected