mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
Separated the complex event buffering and flushing logic from `NostrClient.subscribeVideos` into a dedicated `VideoEventBuffer` utility class. This improves readability and maintainability of the `client.js` file. - Created `js/nostr/videoEventBuffer.js` - Updated `js/nostr/client.js` to use `VideoEventBuffer` - Added unit tests in `tests/nostr/videoEventBuffer.test.mjs` Co-authored-by: PR0M3TH3AN <[email protected]>