| Package | com.aispeech.net |
| Class | public class LatencyCheck |
| Inheritance | LatencyCheck flash.events.EventDispatcher |
Check latency of the given connection
Dispatch NetEvent.LATENCYCHECK_RESULT event when success, data {latency:int}
Dispatch NetEvent:LATENCYCHECK_FAULT event when fail
| Property | Defined By | ||
|---|---|---|---|
| LATENCY_CHECK_APPLICATION : String = :5080/v2.0/latencydetect [static] | LatencyCheck | ||
| Method | Defined By | ||
|---|---|---|---|
LatencyCheck(connectionParams:ConnectionParams)
LatencyCheck constructor,
establish HTTP connection to the latency check service on the target server
| LatencyCheck | ||
sendLog(sessionId:String, avgLatency:int, avgThroughput:int):void | LatencyCheck | ||
start():void | LatencyCheck | ||
| LATENCY_CHECK_APPLICATION | property |
public static var LATENCY_CHECK_APPLICATION:String = :5080/v2.0/latencydetect| LatencyCheck | () | Constructor |
public function LatencyCheck(connectionParams:ConnectionParams)LatencyCheck constructor, establish HTTP connection to the latency check service on the target server
ParametersconnectionParams:ConnectionParams |
| sendLog | () | method |
public function sendLog(sessionId:String, avgLatency:int, avgThroughput:int):voidParameters
sessionId:String | |
avgLatency:int | |
avgThroughput:int |
| start | () | method |
public function start():void