Skip to content

reportToObject is not defined #17

@kevin-frugier

Description

@kevin-frugier

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions