jack e1a2621c78 update 2 gadi atpakaļ
..
LICENSE e1a2621c78 update 2 gadi atpakaļ
README.md e1a2621c78 update 2 gadi atpakaļ
index.js e1a2621c78 update 2 gadi atpakaļ
package.json e1a2621c78 update 2 gadi atpakaļ
test.js e1a2621c78 update 2 gadi atpakaļ

README.md

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();