Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about EmitAsync #353

Open
babizhu opened this issue Jan 22, 2024 · 1 comment
Open

about EmitAsync #353

babizhu opened this issue Jan 22, 2024 · 1 comment

Comments

@babizhu
Copy link

babizhu commented Jan 22, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants