/** * Output some data * @param string $s String to out * @param boolean $flush * @return boolean Success */ public function out($s, $flush = true) { if ($this->heartbeatTimer !== null) { Timer::setTimeout($this->heartbeatTimer); } return parent::out($s, $flush); }
/** * Output some data * @param string $s String to out * @param boolean $flush * @return boolean Success */ public function outputFrame($s, $flush = true) { $this->bytesSent += mb_orig_strlen($s); return parent::out($s, $flush); }