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

reportToObject is not defined #17

Open
kevin-frugier opened this issue Feb 17, 2016 · 0 comments
Open

reportToObject is not defined #17

kevin-frugier opened this issue Feb 17, 2016 · 0 comments

Comments

@kevin-frugier
Copy link

I'm trying to use the sample code where the following is done :

monitor.on('health:report', function(reporter, pc) {

    var statistics = [];

    console.log(reporter.id);
    console.log(reporter.isActive() ? 'Connection is active' : 'Connection is inactive');

    var channels = reporter.getChannelReports();

    for (var i = 0; i < channels.length; i++) {
        var report = channels[i];
        console.log(report.toJSON());
    }
});

But I get the following error

reportToObject is not defined

And indeed when searching in the repository I see it called here :

result.connection = reportToObject(this.connection);

But it doesn't seem to be defined anywhere.

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