-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Recommendation to add or update INotificationHandler 'SubscriptionType' to static.
e.g.
TwitchLib.EventSub.Websockets/TwitchLib.EventSub.Websockets/Handler/Stream/StreamOnlineHandler.cs
Line 17 in 129f195
| public string SubscriptionType => "stream.online"; |
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).