https://medium.com/@thelostcartridge/building-with-claude-ai-real-time-streaming-interactive-response-handling-part-5-of-6-d775713fdb55