doghappy / socket.io-client-csharp

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

about EmitAsync #353

Open babizhu opened 5 months ago

babizhu commented 5 months ago

private async Task EmitAsync( string eventName, CancellationToken cancellationToken, Action ack, params object[] data)

why this method has become private? If I want to set a timeout and also directly obtain the response, how should I go about it?

Additionally, is there a method like PingTimeout? That is to say, if no data is received from the server within a specified time, is it possible to capture this event and, if necessary, automatically reconnect?"

e8-ZhangSen commented 5 months ago

Same question, how to simply set a timeout for EmitAsync?