Pibd-21_Alekseev_I.S._Inter.../IP/node_modules/server-destroy
VanyaAlekseev c91124ead4 lab3
2023-12-21 21:08:22 +04:00
..
index.js lab3 2023-12-21 21:08:22 +04:00
LICENSE lab3 2023-12-21 21:08:22 +04:00
package.json lab3 2023-12-21 21:08:22 +04:00
README.md lab3 2023-12-21 21:08:22 +04:00
test.js lab3 2023-12-21 21:08:22 +04:00

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