1.0.0 • Published 5 years ago

serv-term v1.0.0

Weekly downloads
2,006
License
MIT
Repository
github
Last release
5 years ago

serv-term

npm version

Getting Started

To install the module:

npm install serv-term --save

Features

API Reference

serv-term~createServerTerminator(server, options) ⇒ function

Registers connection listeners, and returns a function that when called will close a server and all open connections

Kind: inner method of serv-term
Returns: function - A function to initiate the shutdown of the server

ParamTypeDescription
serverhttp.Server | https.ServerThe server to be terminated
optionsobjectAccepts the following options
options.timeoutnumberThe duration to wait before forcefully terminating the server

License

MIT