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

Handle with events doesn't work very well #9

Open
christopharus opened this issue Sep 3, 2019 · 1 comment
Open

Handle with events doesn't work very well #9

christopharus opened this issue Sep 3, 2019 · 1 comment

Comments

@christopharus
Copy link

I have tried to handle the ping with events and I got null as response .

@AuspeXeu
Copy link

The interface is not correct in the examples. This is correct:

ping.on('result', function(ms) {
  console.log(this._host+' responded in '+ms+'ms.');
});

and ms will be null if the ping was not successful.

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