diff --git a/src/Transports/HttpServerTransport.php b/src/Transports/HttpServerTransport.php index 35d3323..f51db35 100644 --- a/src/Transports/HttpServerTransport.php +++ b/src/Transports/HttpServerTransport.php @@ -169,7 +169,7 @@ public function handleSseRequest(Request $request): StreamedResponse } $this->emit('client_disconnected', [$sessionId, 'SSE stream closed']); - }, [ + }, headers: [ 'Content-Type' => 'text/event-stream', 'Cache-Control' => 'no-cache', 'Connection' => 'keep-alive',