server-destroy
Enable destroying a server, and all currently open connections.
Last updated 5 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 (5 years ago)

2 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 660
This Week 1,838
This Month 24,683
Last Day 1,178
Last Week 8,173
Last Month 21,795
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (326)

Copyright 2014 - 2016 © taobao.org |