-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
init v2 chat #467
Draft
Geczy
wants to merge
80
commits into
master
Choose a base branch
from
twitch-chat-v2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
init v2 chat #467
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…dy construction in subscribeChatMessagesForUser
…several packages including @supabase/supabase-js, @twurple/eventsub-base, i18next, and others for improved functionality and security.
…nce subscription handling in subscribeChatMessagesForUser by initializing broadcaster entries and storing subscription details more clearly.
…and deleteSubscription function; enhance fetchExistingSubscriptions to identify subscriptions for cleanup and log deletion attempts.
…evelopment environment support.
Maintains a queue of tasks Tracks rate limit information from Twitch's response headers Automatically delays requests when rate limits are hit Processes tasks in order while respecting rate limits Update the subscription functions to: Use the rate limiter for all API calls Update rate limit information from response headers Handle 429 responses properly Process subscriptions in chunks to avoid overwhelming the rate limiter Add proper error handling and retries for rate-limited requests The rate limiter will automatically queue requests and wait when necessary to stay within Twitch's rate limits. It also updates its internal limits based on the headers returned by Twitch, ensuring accurate rate limiting.
…ope for improved account retrieval in Twitch events.
…filtering, improving account retrieval accuracy in Twitch events.
…tilizing the new rate limiter for API calls. This change enhances the subscription cleanup process by processing deletions in manageable chunks, preventing overwhelming the Twitch API and improving error handling during subscription deletions.
…improving rate limiter functionality. The deletion of subscriptions is now tracked in chunks with detailed logging of progress every 100 deletions. Additionally, the RateLimiter class has been updated to include queue length and rate limit status logging, providing better insights into the rate limiting process during API calls.
…d to track remaining requests accurately. Update processQueue to reset remaining count when the reset period has passed. Additionally, add a TODO comment in subscribeChatMessagesForUser.ts to mark users requiring refresh after subscription failures.
… logging. The GSIHandler now emits an 'enable' event with the channel ID when enabling, while toggleDotabod simplifies the enabling/disabling logic and enhances logging for better traceability. Additionally, added progress logging in fetchExistingSubscriptions to monitor account processing and rate limit status.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
twitch conduits with websocket shards
removes webhooks server