collect events and send them as an SSE stream