diff --git a/src/Sse/ServerSentEvent.php b/src/Sse/ServerSentEvent.php index 68f67b5..d1e093d 100644 --- a/src/Sse/ServerSentEvent.php +++ b/src/Sse/ServerSentEvent.php @@ -61,7 +61,7 @@ public function __invoke() { echo $this; - if (ob_get_level()) { + if (ob_get_level() !== 0) { ob_flush(); }