MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / saveLocalSession

Function saveLocalSession

demo/chat/session.ts:81–86  ·  view source on GitHub ↗
(session: ChatSession)

Source from the content-addressed store, hash-verified

79}
80
81export function saveLocalSession(session: ChatSession): void {
82 localStorage.setItem(
83 STORAGE_KEY,
84 JSON.stringify({ ...session, updatedAt: new Date().toISOString() }),
85 );
86}
87
88export async function loadServerSession(): Promise<ChatSession | null> {
89 try {

Callers 1

ChatAppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected