onUpdate() 공개 메소드

public onUpdate ( $currentTick )
예제 #1
1
파일: Player.php 프로젝트: iTXTech/Genisys
 public function onUpdate($currentTick)
 {
     if (microtime(true) - $this->lastPacketTime >= 5 * 60) {
         //5 minutes time out
         $this->close("", "timeout");
         return false;
     }
     return parent::onUpdate($currentTick);
 }