Skip to content

Commit 62f1919

Browse files
author
klapaudius
committed
Remove redundant ob_flush() call in SseTransport
The ob_flush() call was unnecessary as flush() suffices for ensuring the output is sent to the client. Removing it simplifies the code while maintaining its intended functionality.
1 parent f4cfec2 commit 62f1919

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Transports/SseTransport.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ private function sendEvent(string $event, string $data): void
110110
$this->logger?->debug('SSE Transport::sendEvent: event: '.$event.PHP_EOL.'data: '.$data.PHP_EOL);
111111

112112
// Just ensure output gets flushed
113-
ob_flush(); // Flushes the active buffer
114113
flush(); // Flushes the system-level buffer (important for real-time outputs)
115114

116115
echo sprintf('event: %s', $event).PHP_EOL;

0 commit comments

Comments
 (0)