Is there a way to close a response? I can use res.end() but it doesn\'t actually close the socket.
res.end()
What I want to achieve: I am writing a Java program w
In case someone who really wants just to close the connection finds this, you can use res.socket or res.connection to get the net.Socket object which comes with a destroy method:
res.connection.destroy();