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

Update README.md #35

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,18 @@ namespace TwitchLib.EventSub.Websockets.Test

if (!e.IsRequestedReconnect)
{
// subscribe to topics
/*
Subscribe to topics via the TwitchApi.Helix.EventSub object.

var conditions = new Dictionary<string, string>()
{
{ "broadcaster_user_id", someUserId }
};
var subscriptionResponse = await TwitchApi.Helix.EventSub.CreateEventSubSubscriptionAsync("channel.subscribe", "1", conditions,
grofit marked this conversation as resolved.
Show resolved Hide resolved
EventSubTransportMethod.Websocket, _eventSubWebsocketClient.SessionId);

You can find more examples on the subscription types and their requirements here https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/
*/
}
}

Expand Down