public function sseMessageLine($text, $id = null)
    {
        if (!is_null($id)) {
            echo "id: $id\n";
        }

        $text = explode("\n", $text);
        $text = 'data: '.implode("\ndata: ", $text)."\n\n";
        echo $text;
        flush();
    }