vibetunnel/web/scripts
Mario Zechner fbc8954d39 feat: Optimize file watching for lower latency streaming
- Add platform-specific optimized file watcher
  - Linux: inotify with rapid polling after changes
  - macOS: FSEvents + periodic checks to overcome batching
  - Windows: ReadDirectoryChangesW with debouncing
- Add direct in-process notifications via StreamNotifier
  - Bypasses file watching for same-process sessions
  - Near-instant latency for server-created sessions
- Update StreamWatcher to use both mechanisms
  - Primary: Direct notifications (microsecond latency)
  - Fallback: Optimized file watching (for fwd.ts)
- Add latency and stress test scripts

This should significantly reduce streaming latency, especially
for sessions created by the server process.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 20:18:57 +02:00
..
build-ci.js fix: Add CI-specific build script to skip native executable build 2025-06-22 07:34:59 +02:00
build.js Add logic to use custom node compiler 2025-06-22 11:53:15 +02:00
clean.js Reorganize server structure for clarity 2025-06-21 16:44:56 +02:00
copy-assets.js Fix cross-platform build issues in web package 2025-06-19 01:43:27 +02:00
dev.js Reorganize server structure for clarity 2025-06-21 16:44:56 +02:00
ensure-dirs.js Fix cross-platform build issues in web package 2025-06-19 01:43:27 +02:00
latency-test.js feat: Optimize file watching for lower latency streaming 2025-06-22 20:18:57 +02:00
stress-test-terminal.js feat: Optimize file watching for lower latency streaming 2025-06-22 20:18:57 +02:00