/** * @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); }