RTCMultiConnection Docs

RTCMultiConnection API Reference / "stats" object

This feature has been removed since v2.2.1. You can still access all properties directly e.g.
// you can directly access "numberOfConnectedUsers" later like this:
alert( connection.numberOfConnectedUsers );
alert( connection.numberOfSessions );

// You can even access all sessions using this object-like array:
alert( connection.sessionDescriptions['sessionid'] );
  1. "stats" object contains list of statistics returned using getStats method.
  2. // you can directly access "numberOfConnectedUsers" later like this:
    alert(connection.stats.numberOfConnectedUsers);
    alert( connection.stats.numberOfSessions );
    
    // You can even access all sessions using this object-like array:
    alert( connection.stats.sessions['sessionid'] );
    
    // or
    for(var session in connection.stats.sessions) {
        console.log(connection.stats.sessions[session]);
    }
    
    // You can get above values usnig "getStats" method as well:
    connection.getStats(function(stat) {
        console.log(stat.numberOfConnectedUsers);
        console.log(stat.numberOfSessions);
        
        for(var session in stat.sessions) {
           console.log(stat.sessions[session]);
        }
    });
    

Want to ask a Question?

You can include your email for private conversation!