Server-Side Communication ActionScript > Client.ping |
![]() ![]() ![]() |
Client.ping
Availability
Flash Communication Server MX.
Usage
Client.ping
Description
Method; sends a "ping" message to the client and waits for a response. If the client responds, the method returns true
, otherwise returns false
. Use this method to determine whether or not the client connection is still alive and active.
Example
The following onConnect
function pings the connecting client and traces the results of the method to the Output window:
application.onConnect( newClient ) {
if ( newClient.ping() ){
trace("ping successful");
}
else {
trace("ping failed");
}
}
See also
![]() ![]() ![]() |