()
| 67 | }); |
| 68 | |
| 69 | const createSessionId = () => { |
| 70 | if ( |
| 71 | typeof crypto !== "undefined" && |
| 72 | typeof crypto.randomUUID === "function" |
| 73 | ) { |
| 74 | return crypto.randomUUID(); |
| 75 | } |
| 76 | |
| 77 | return `recording-${Date.now()}-${Math.random().toString(36).slice(2)}`; |
| 78 | }; |
| 79 | |
| 80 | export class RecordingSpoolBackpressureError extends Error { |
| 81 | constructor() { |