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