diff options
author | Sam Roberts <sam@strongloop.com> | 2014-12-29 22:10:36 -0800 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-12-30 21:40:46 +0100 |
commit | b42c0853ae3c41f88959168c5124af4f68059cbf (patch) | |
tree | ae3ea7e3c1c062602fc90943e081403384b89ce3 /doc/api/tls.markdown | |
parent | 63005ee10bca50946b04fad39175fdf0c3e68b06 (diff) | |
download | node-new-b42c0853ae3c41f88959168c5124af4f68059cbf.tar.gz |
doc: add tls server.close() callback docsarchived-io.js-v0.12
Also, tests to confirm its existence.
PR-URL: https://github.com/iojs/io.js/pull/217
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'doc/api/tls.markdown')
-rw-r--r-- | doc/api/tls.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/tls.markdown b/doc/api/tls.markdown index c03845e872..d63a6eba01 100644 --- a/doc/api/tls.markdown +++ b/doc/api/tls.markdown @@ -602,11 +602,11 @@ when the server has been bound. See `net.Server` for more information. -### server.close() +### server.close([callback]) Stops the server from accepting new connections. This function is asynchronous, the server is finally closed when the server emits a `'close'` -event. +event. Optionally, you can pass a callback to listen for the `'close'` event. ### server.address() |