I have an http server created using:
var server = http.createServer()
I want to shut down the server. Presumably I\'d do this by calling:
<
You need to
connection event of the server and add opened sockets to an arrayclose event and removing the closed ones from your arraydestroy on all of the remaining open sockets when you need to terminate the serverYou also have the chance to run the server in a child process and exit that process when you need.