Add EventSub functionality and deprecate legacy IRC transport#86
Open
denpadokei wants to merge 1 commit intoErisApps:mainfrom
Open
Add EventSub functionality and deprecate legacy IRC transport#86denpadokei wants to merge 1 commit intoErisApps:mainfrom
denpadokei wants to merge 1 commit intoErisApps:mainfrom
Conversation
…transport - Implement SendChatMessage method to send messages to a broadcaster's chat. - Add CreateEventSubSubscription method for creating EventSub subscriptions. - Implement DeleteEventSubSubscription method to remove EventSub subscriptions. - Update retry policy in TwitchHelixApiService for better exponential backoff. - Mark TwitchIrcService and legacy PubSub service as obsolete, recommending migration to EventSub.
Owner
|
Hii @denpadokei, First of all thank you for the pull request. |
This file contains hidden or 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
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.
This pull request introduces major improvements to Twitch EventSub support, including the addition of new models for EventSub payloads and events, updates to JSON serialization contexts, and enhancements to dependency injection and package versions. The changes enable more comprehensive handling of Twitch chat events, notifications, and settings, and improve serialization performance and compatibility.
EventSub Models and Payloads:
EventSubChatMessagePayload,EventSubChatNotificationPayload,EventSubChatMessageDeletePayload,EventSubChatClearPayload,EventSubChatSettingsPayload, andEventSubSessionPayload. These models cover chat messages, notifications, message deletions, chat clears, chat settings, and session information. [1] [2] [3] [4] [5] [6]EventSubWebSocketMessage<TPayload>structure and supporting metadata for handling incoming WebSocket messages from Twitch.JSON Serialization Enhancements:
TwitchEventSubSerializerContextto register all EventSub-related types for source-generated JSON serialization, improving performance and reliability.TwitchHelixSerializerContextto include additional EventSub-related request and response DTOs for serialization.Dependency Injection and Service Registration:
RegisterManyforITwitchHelixApiServiceandITwitchPubSubServiceManager, and added an initializer forITwitchAuthService. This improves service resolution and initialization.API DTOs and Polyfills:
SendChatMessageRequestDto,EventSubSubscriptionRequestDto,EventSubTransportDto).IsExternalInitto supportinitaccessors in .NET Standard 2.0+.Package Updates:
System.Text.Jsonpackage from version 7.0.2 to 10.0.5 for improved serialization features and performance.These changes lay the groundwork for robust support of Twitch's EventSub system and modernize the serialization and dependency injection infrastructure.