Stream to Server Side Events, lifted from @dominictarr 's JSONStream