MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getBlob

Function getBlob

apps/api/e2e/lib.ts:41–44  ·  view source on GitHub ↗
(deviceId: string)

Source from the content-addressed store, hash-verified

39export const SESSION_BUFFER_LIST = 'session-buffer';
40
41export async function getBlob(deviceId: string) {
42 const raw = await redis.get(sessionKey(deviceId));
43 return raw ? JSON.parse(raw) : null;
44}
45
46// ── Timing ──────────────────────────────────────────────────────────────────
47export const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));

Callers 2

drainFunction · 0.90
scenarioSingleSessionFunction · 0.90

Calls 3

parseMethod · 0.80
sessionKeyFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected