[solved] Is there a way to implement a timeout on fetch and socket connections ?

Hello, as per the title, I have a worker that use fetch and sockets but would like to kill the connection if it takes longer than x to get a response. What would be the best way to implement this behavior ?
1 Reply
Want results from more Discord servers?
Add your server