User Guide

52 Server Management ActionScript Language Reference
See also
getUserStats()
getUserStats()
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
getUserStats(app_instance, user_ID)
Parameters
app_instance A string that contains the name of the instance of the application, in the
form
application_name/instance_name.
user_ID A string that contains the user ID, as assigned by the server. You can retrieve a user
ID with the
getUsers command.
Returns
If the call succeeds, the server sends a reply information object with a level property of
status, a code property of NetConnection.Call.Success, and a data property that is an
object. The
data object has the following properties:
Property Description
connect_time
ActionScript Date object; time, in seconds, that the user has been
connected to the specified instance of the application.
msg_in
Number; total number of messages processed by this user.
msg_out
Number; total number of messages sent by this user.
msg_dropped
Number; total number of messages dropped by this user.
bytes_in
Number; total number of bytes read by this user.
bytes_out
Number; total number of bytes written by this user.
msg_queue
Object that contains the client message queue statistics. The
msg_queue object contains the following properties:
total_queues: Total number of queues for this client.
audio: Total number of audio messages in all audio queues.
video: Total number of video messages in all video queues.
other: Total number of command/data messages in the other
queue.