(viewUUID: string)
| 436 | } |
| 437 | |
| 438 | function dequeueCommands(viewUUID: string): PdfCommand[] { |
| 439 | // Poll is activity — keep the view alive even when the queue is empty |
| 440 | // (the common case: viewer polls every ~30s with nothing to receive). |
| 441 | touchView(viewUUID); |
| 442 | const entry = commandQueues.get(viewUUID); |
| 443 | if (!entry) return []; |
| 444 | const commands = entry.commands; |
| 445 | commandQueues.delete(viewUUID); |
| 446 | return commands; |
| 447 | } |
| 448 | |
| 449 | // ============================================================================= |
| 450 | // File Watching (local files, stdio only) |
no test coverage detected
searching dependent graphs…