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

Suggestion- Websocket Subscription Handlers - static 'SubscriptionType' #47

Open
WrithemTwine opened this issue Nov 5, 2024 · 0 comments

Comments

@WrithemTwine
Copy link

WrithemTwine commented Nov 5, 2024

Recommendation to add or update INotificationHandler 'SubscriptionType' to static.

e.g.

We could use the static object for reference in the Helix create subscription, instead of either an instance (see below code example) or manual typed subscription.

Helix.EventSub.CreateEventSubSubscriptionAsync( new StreamOnlineHandler().SubscriptionType, "1", conditions, EventSubTransportMethod.Websocket, _eventSubWebsocketClient.SessionId );

Or am I missing a dictionary table somewhere with all of the subscription types accessible by key/value?

(I can understand code logistical issues and trying to keep things as minimal footprint can override this suggestion).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant