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:
For reference for others who stumble accross this question, the https://github.com/isaacs/server-destroy library provides an easy way to destroy() a server (using the approach described by Ege).
destroy()