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 1,125
This Week 5,921
This Month 5,921
Last Day 1,629
Last Week 8,620
Last Month 34,888
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (339)

Copyright 2014 - 2017 © taobao.org |