Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let us configure polling rate of live chat #612

Open
4 tasks done
MarcusOtter opened this issue Mar 1, 2024 · 1 comment
Open
4 tasks done

Let us configure polling rate of live chat #612

MarcusOtter opened this issue Mar 1, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers priority: medium

Comments

@MarcusOtter
Copy link

MarcusOtter commented Mar 1, 2024

Describe your suggestion

Would you ever consider making the polling rate of live chat to something other than 2 seconds? Some applications may want to make different tradeoffs when it comes to update rate and bandwidth.

Other details

Today it seems hard-coded to 2000ms: https://github.com/LuanRT/YouTube.js/blob/main/src/parser/youtube/LiveChat.ts

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@MarcusOtter MarcusOtter added the enhancement New feature or request label Mar 1, 2024
@LuanRT
Copy link
Owner

LuanRT commented Mar 1, 2024

The polling rate for the live chat is determined by the SmoothedQueue class. It's 2000ms only when there are no actions or if it's a live chat replay.

Either way, this is still a valid feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers priority: medium
Projects
None yet
Development

No branches or pull requests

2 participants