alexp95
alexp9513mo ago

Cannot pass request object to worker

I am trying to pass a request object to a worker file, but it is not receiving it inside of the worker, for the worker to process
I can post my code if this question is not clear
1 Reply
Andreu Botella (they/them)
it's not possible to do that if you need to do some heavy computation in response to a request, you should instead extract the data in some form in the main thread (even if that's just doing req.arrayBuffer() or similar) and sending that