out() public method

Output some data
public out ( string $s, boolean $flush = true ) : boolean
$s string String to out
$flush boolean ob_flush?
return boolean Success
Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }