Closed manueldimmler closed 1 year ago
Hm.. I dont really understand. Why would you hold the full response in memory? How would that help you with the article you linked?
Also, what is the issue using the normal Stream?
@manueldimmler
What about Laminas' SapiStreamEmitter.php
?
Closing as stalled.
At the moment, it's not possible to use server-sent events with this implementation.
When calling StreamInterface::write, the content should be echoed and flushed immediately. In addition, the header would have to be emitted immediately in the Response class if the NonBufferedStream is used as the body.
Possible implementation of StreamInterface::write in a new NonBufferedStream class
Additional lines needed in MessageTrait::withHeader