Package Exports
- server-destroy
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (server-destroy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
server-destroy
Enable destroying a server, and all currently open connections.
Usage
var enableDestroy = require('server-destroy');
var server = http.createServer(function(req, res) {
// do stuff, blah blah blah
});
server.listen(PORT);
// enhance with a 'destroy' function
enableDestroy(server);
// some time later...
server.destroy();