Packagecom.aispeech.net
Classpublic class LatencyCheck
InheritanceLatencyCheck Inheritance 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



Public Properties
 PropertyDefined By
  LATENCY_CHECK_APPLICATION : String = :5080/v2.0/latencydetect
[static]
LatencyCheck
Public Methods
 MethodDefined 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
Property Detail
LATENCY_CHECK_APPLICATIONproperty
public static var LATENCY_CHECK_APPLICATION:String = :5080/v2.0/latencydetect

Constructor Detail
LatencyCheck()Constructor
public function LatencyCheck(connectionParams:ConnectionParams)

LatencyCheck constructor, establish HTTP connection to the latency check service on the target server

Parameters
connectionParams:ConnectionParams
Method Detail
sendLog()method
public function sendLog(sessionId:String, avgLatency:int, avgThroughput:int):void

Parameters

sessionId:String
 
avgLatency:int
 
avgThroughput:int

start()method 
public function start():void