Server-Side Communication ActionScript > Application.getStats |
![]() ![]() ![]() |
Application.getStats
Availability
Flash Communication Server MX.
Usage
application.getStats()
Returns
An ActionScript object with various properties for each statistic returned.
Description
Method; returns statistics for the application instance including the total number of bytes sent and received, the number of RTMP messages sent and received, the number of dropped messages, the number of clients connected to the application instance, and the number of clients who have disconnected from the application instance.
Example
The following traces example uses Application.getStats
to output the application instance's statistics to the Output window:
stats = application.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("Total clients connected : " + stats.total_connects); trace("Total clients disconnected : " + stats.total_disconnects);
![]() ![]() ![]() |