PIbd-21_Danilov_V.V._Intern.../Lab3/node_modules/server-destroy/README.md
Владимир Данилов 83490711d5 отчет
2023-12-19 20:23:11 +04:00

369 B

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