public function out($str, $opt = array())
    {
        $data = array_merge($opt, ['text' => rtrim($str, "\n")]);
        //if($color)$data['style']='color: '.$color;
        $this->sseMessageJSON($data);
    }
public function out($str, $opt = array())
    {
        $data = array_merge($opt, ['text' => rtrim($str, "\n")]);
        //if($color)$data['style']='color: '.$color;
        $this->sseMessageJSON($data);
    }
public function out ( $ str , $ opt = array ( ) ) { $ data = array_merge ( $ opt , [ 'text' => rtrim ( $ str , "\n" ) ] ) ; //if($color)$data['style']='color: '.$color; $ this -> sseMessageJSON ( $ data ) ; }
Displays output in the console.
Displays output in the console .