Skip to content

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

@WrithemTwine

Description

@WrithemTwine

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions