server-destroy
Enable destroying a server, and all currently open connections.
Last updated 6 years ago by isaacs .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (6 years ago)

2 Versions

  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 155
This Week 11,776
This Month 30,986
Last Day 714
Last Week 11,791
Last Month 54,990
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (389)

Copyright 2014 - 2021 © npmmirror.com |