Assert that the next event matches the expected partial shape
Assert that the next event's data matches the expected string
Assert that the next event's data is JSON matching the expected value
Collect all remaining events until the stream ends
Wait for the stream to end
TestSseConnection
Live SSE connection wrapper with assertion helpers for testing.
Example