From: Sequoia McDowell Date: Fri, 8 Jan 2016 18:27:44 +0000 (-0500) Subject: doc: document http's server.listen return value X-Git-Tag: v4.2.5~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b45a464eeceb80621e54f15cea1204c3e8eef32;p=platform%2Fupstream%2Fnodejs.git 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 Reviewed-By: Roman Reiss --- diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 5540dc6..3904dd2 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -506,6 +506,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`.