ParsesServerSentEvents
trait ParsesServerSentEvents
Methods
parseServerSentEvents(StreamInterface $streamBody)
Parse an SSE stream body into decoded JSON data objects.
string
readLine(StreamInterface $streamBody)
Read one line without waiting for a larger body buffer to fill.
Details
at line 24
protected Generator
parseServerSentEvents(StreamInterface $streamBody)
Parse an SSE stream body into decoded JSON data objects.
at line 52
protected string
readLine(StreamInterface $streamBody)
Read one line without waiting for a larger body buffer to fill.