Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > Client class > Client.getStats() | |||
Flash Communication Server MX 1.0.
clientObject.getStats()
An object with various properties for each statistic returned.
Method; returns statistics for the client including the total number of bytes sent and received, the number of RTMP messages sent and received, the number of dropped RTMP messages, and how long it takes the client takes to respond to a ping message.
The following example uses Client.getStats() to output a new client's statisitics:
application.onConnect( newClient ){
stats = newClient.getStats();
trace("Total bytes received: " + stats.bytes_in);
trace("Total bytes sent: " + stats.bytes_out);
trace("RTMP messages received: " + stats.msg_in);
trace("RTMP messages sent: " + stats.msg_out);
trace("RTMP messages dropped: " + stats.msg_dropped);
trace("Ping roundtrip time: " + stats.ping_rtt);
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000671.html