This commit is contained in:
2026-09-12 13:59:12 +08:00
commit 941ce4baab
71 changed files with 13037 additions and 0 deletions

8
lib/adaptive-poll.js Normal file
View File

@@ -0,0 +1,8 @@
'use strict';
function computePollMs(base, visible, { cap = 4000 } = {}) {
if (visible) return base;
return Math.min(base * 2, cap);
}
module.exports = { computePollMs };