Server streaming grpc client problem

Hello

I have tried to make streaming request in Photoshop UXP plugin. The request is working, but all result are not coming in as a stream, instead these are coming in after request is finished at once.

This is not problem in common browsers (Chrome, Firefox etc) and response is sent there/coming in as a stream. In my example one server “hello” every second.
This is example code:

  let promiseEngines = new Promise((resolve, reject) => {

   let client = new MultiGreeterClient(SDConfig.url, { metadata }, null);

   let stream =client.sayHello(helloRequest, metadata);

  stream.on('data', (response) => {

            let answer = response.toObject();

            console.log("response is send here as a single answer not streaming one!",answer);

  });

i use this command to render javascript grpc files :

protoc -I=. engines.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.

i have already send question to authors of grpc-web library