ngx-grpc icon indicating copy to clipboard operation
ngx-grpc copied to clipboard

Problems with adding worker in Universal

Open vulovicv23 opened this issue 4 years ago • 2 comments

Hey guys!

So, im having issues with adding worker as described in the readme to my angular project.

I have a Angular app with Universal built into it. I am unable to find a solution to make this work. Can you please suggest anything?

worker: new Worker('./grpc.worker', { type: 'module' }),
                            ^

ReferenceError: Worker is not defined

Thanks!

Vukasin

vulovicv23 avatar Sep 10 '21 12:09 vulovicv23

Hi,

I'm very sorry for so much delayed response. I'm totally unsure whether it is possible at all to create Worker in Universal. This is probably a question to angular team. Did you find a solution?

smnbbrv avatar Mar 01 '22 21:03 smnbbrv

I didn't, so, I moved along, not using GRPC for connecting it from FE anymore, but rather api with Brotli compression, and then the microservices are communicating via GRPC which is much easier to handle.

vulovicv23 avatar Jul 06 '22 11:07 vulovicv23