TwitchLib / TwitchLib.PubSub

PubSub component of TwitchLib.
38 stars 52 forks source link

LISTEN/UNLISTEN? #97

Closed Cocss closed 3 years ago

Cocss commented 3 years ago

How can I stop listening to an event. There is a ListenToVideoPlayBack(channelid) event starts listening, but how to make unlisten by (channelid) lol?

Syzuna commented 3 years ago

you do a ListenToVideoPlayBack(channelId) again and then do a SendTopics(auth (if needed), true), where the second argument is a bool called unlisten, that then unlistens the topics specified before

Cocss commented 3 years ago

oh damn, I'm stupid, I didn't notice it. Thanks for the help