D
Deno

help

Cannot pass request object to worker

Aalexp9511/2/2023
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
ABTAndreu Botella (they/them)11/2/2023
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

Looking for more? Join the community!