doc: document http's server.listen return value

The server method returns `self` in order to allow chaining.

PR-URL: https://github.com/nodejs/node/pull/4590
Fixes: https://github.com/nodejs/node/issues/4571
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
Sequoia McDowell 2016-01-08 13:27:44 -05:00 committed by Roman Reiss
parent adf41b9017
commit 9456f5012d

View File

@ -511,6 +511,8 @@ Listening on a file descriptor is not supported on Windows.
This function is asynchronous. The last parameter `callback` will be added as
a listener for the `'listening'` event. See also [`net.Server.listen()`][].
Returns `server`.
### server.listen(path[, callback])
Start a UNIX socket server listening for connections on the given `path`.