socket.io-client-csharp
socket.io-client-csharp copied to clipboard
about EmitAsync
private async Task EmitAsync( string eventName, CancellationToken cancellationToken, Action<SocketIOResponse> 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?"
Same question, how to simply set a timeout for EmitAsync?