onWrite() public method

Called when the connection is ready to accept new data
public onWrite ( ) : void
return void
Example #1
0
 /**
  * @TODO DESCR
  * @return void
  */
 public function onWrite()
 {
     $this->onWrite->executeAll($this->route);
     if (method_exists($this->route, 'onWrite')) {
         $this->route->onWrite();
     }
     if ($this->finished) {
         if (!sizeof($this->buffer) && !sizeof($this->framesBuffer)) {
             $this->onFinish();
         }
     }
     Timer::setTimeout($this->finishTimer);
 }