Open ArcadeArchie opened 1 year ago
im using
@ArcadeArchie Kinda late reply, but current (stable) version of TwitchLib.PubSub
is using TwitchLib.Communication
version 1.0.4 as an underlying client. This version of the communication library had issues with reconnection and proper disconnects. So instead of truly disconnecting, it just automatically reconnected, causing new OnPubSubServiceConnected to be fired again (you should also see active connection for that service).
This is already (mostly) fixed by new 2.0 communication version (there is still one more pending bug) and PubSub should be updated to 4.0 version. If you don't want to wait for stable, you can try using preview versions of the packages.
i have a asp.net core hosted service that looks like this, when i stop the service at runtime(i.e. stream went down so pubsub is no longer needed) the disconnect works as expected but for some reason
OnPubSubServiceConnected
is triggered which it shouldnt