Streaming structured Outputs in node JS

When Structured Outputs was released, I tried it out, but realized it did not support streaming.
But then I found some community posts talking about streaming Structured Outputs, and that it does in fact work.
However the examples were done in Python.
I tried to implement it into my node JS project, but always got Status code 500 responses.
If it is possible to stream Structured Outputs, can someone please provide an example in JS on how to do it?

Thank you so much!