1.0.1 • Published 10 years ago

server-destroy v1.0.1

Weekly downloads
1,158,615
License
ISC
Repository
github
Last release
10 years ago

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();
astro-no-undicidia-agents-baseservicedia-agent-baseservicewith-browsernuxt-compactnuxt2another-json-server@open-containers-manager/cli@r35007/mock-server-litejson-server-custom-router@infinitebrahmanuniverse/nolb-server-reddit-uhdincremental-astrotesting-ci-ortsatesting-ci-ortsa-node@everything-registry/sub-chunk-2736tamanyan_nuxtsystemic-expresstest-listen-destroywintersmith2wintersmithweb-component-testerweb-component-tester-bundleweb-component-tester-bvaleweb-component-tester-custom-runnervue-herwei-astro-testworkosworkos-clixl-json-serverteld-nuxtteld-runtime-nuxtstatic-api-mockvssrvue-cvs@cocreate/google-auth@ctfdio/picocss-themes@d2js/server@d0whc3r/json-server@dadi/web@dony435/json-server@dovca/nuxt-server@cafienne/typescript-client@pepperi-addons/mobile-branded-app@rsf/json-serverjeuxuijson-server-extjson-server-fix-statuscodejson-server-forkjson-server-masterjson-server-plusjson-server-s3json-server-sinnbojson-server-testejson-server-cnjson-server-relationshipjson-server-visopjson-server-with-batch-insertionjson-server2jobboardfire-nuxtjoplinjoplin-cliiot-soljasmine_test_utilskdrivejson2apikaesongjson-servermockjump-json-server3.0.0tuji-nuxt-servertradie-scripts-webpacktradie-webpack-scriptstoyakotriggers-servicetwintap@antirek/wintersmith@anmiles/google-api-wrapper@atom/teletype-server@astrojs/node@architect/sandbox@alexandravaldez/mdlinks@baseline-dev/local-dev@ahl389/markdoctor@ahl389/markdoctor-gdriver@bitskyai/producer-sdk@bitskyai/retailer-sdk@budibase/deployment@budibase/server@budibase/worker@carbon-io/carbond@cisdi/pangu@abstractball/json-server20scoops-localizer@aboutbeauties/imagetransfer@devlego/server@devlego/worker@diez/extractors@diez/sources@diez/cli-core
1.0.1

10 years ago

1.0.0

12 years ago