server-destroy
Enable destroying a server, and all currently open connections.
Last updated 12 years ago by isaacs .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install server-destroy 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (12 years ago)

2 Versions

  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           14 years ago
Maintainers (1)
Downloads
Total 10
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE