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

close(): for wait until tcp connection is finished: #168

Open
isikhi opened this issue Jul 1, 2020 · 0 comments
Open

close(): for wait until tcp connection is finished: #168

isikhi opened this issue Jul 1, 2020 · 0 comments

Comments

@isikhi
Copy link
Contributor

isikhi commented Jul 1, 2020

I think we need to be sure to sent.
Yeah we can use callback and we can promisify that callback but when use callback you should handle error and when you want to silent there is no option.
There is two issue one of them silent error, other one wait tcp connection

We need function like below.
/**

  • A promise that resolves when all current events have been sent.
  • @param timeout Maximum time in ms the client should wait.
    */
    export declare function close(timeout?: number): Promise;
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

1 participant