doghappy / socket.io-client-csharp

socket.io-client implemention for .NET
MIT License
721 stars 124 forks source link

DisconnectAsync should be able to stop reconnecting #303

Closed dationguyen closed 1 year ago

dationguyen commented 1 year ago

Hi team,

I was thinking that we should cancel the Token source associated with ConnectAsync to stop it when we want to call disconnect. In my test case, the app was in offline mode, the socketClient will keep reconnecting and nothing can stop it. In version 3.0.6, i call Dispose to cancel that token source. but on the most recent version, that line of code is gone. Could u please double check ?

doghappy commented 1 year ago

thanks, let me know if you still have this issue in version 3.0.7