Quiz 4 Question 7 of 20

A real-time analytics platform makes Claude API calls and needs to display streaming responses in a React frontend. The team implements an event stream consumer that processes SSE events. During testing, they observe that when network interruptions occur mid-stream, the EventSource auto-reconnects but the reconnection URL doesn't include the conversation state, causing Claude to start a fresh generation. Users see the response restart from the beginning. What is the correct implementation pattern?

Select an answer to reveal the explanation.

Motivation