The REST documentation does not include a full sample for streaming.
It simply says that all you need to do is call streamGenerateContent
However if you do so without ?alt=sse
in the parameters results are not streamed.
Additionally it does not properly specify the format of the response which is
data: {...}