optimize sse

This commit is contained in:
team 1
2026-04-19 12:57:58 +02:00
parent 13d31c72f9
commit a71426c300
2 changed files with 240 additions and 79 deletions

View File

@@ -65,10 +65,9 @@ final readonly class AskSseController
$this->sendData($chunk);
}
} catch (\Throwable $e) {
$this->sendData(
'<span class="text-danger">❌ Stream abgebrochen: '
. htmlspecialchars($e->getMessage(), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')
. '</span>'
$this->sendEvent(
'error',
'❌ Stream abgebrochen: ' . $e->getMessage()
);
}