Xiong Wang
Xiong Wang
Maybe you need to wait for DisconnectAsync to finish before calling Dispose()
Perhaps, you can set a timeout ```cs var cts = new CancellationTokenSource(3000); await socket.EmitAsync("hi", cts.Token, DateTime.Now.ToString()); ```
Which version do you use and how to reproduce it?
I got some data
On the surface, they are the same. But I think it would be better to specify LongRunning. https://stackoverflow.com/questions/25833054/what-does-long-running-tasks-mean https://stackoverflow.com/questions/37607911/when-to-use-taskcreationoptions-longrunning
Can you create a reproducible repository? Thank you
重新连接时,可能会有多种异常,_expectedExceptions 中仅仅预定义了几种。 有的用户在 unity 或者 xamarin 上使用它,这时连接失败会抛出其它异常,这些异常在更高层的程序集上,所以此库不可能包含所有的异常。 例如,在 xamarin Android 上,抛出的异常可能是 `Java.Net.SocketException`,这个异常类型可能定义在 Xamarin for Android(我不确定具体在哪里),库不会知道具体平台的异常,这时需要用户自己去添加 ExpectedExceptions 如何你确定某个异常,应该重新连接,你应该把异常添加到 _expectedExceptions 中: ```cs var io = new SocketIO(...); io.AddExpectedException(typeof(YourException)); ```
It is not expected. Can you show exception information or logs? By the way, in most cases, you configure EIO incorrectly, please set it to 3 and try it
Thanks for your feedback, I've pushed a commit https://github.com/doghappy/socket.io-client-csharp/commit/bfaf377ba925c398036bb64fc98ab6c7ed548656 for it, I'm not sure when I will release
sorry? could you explain it?