Skip to content

Commit

Permalink
doc: document http's server.listen return value
Browse files Browse the repository at this point in the history
The server method returns `self` in order to allow chaining.

PR-URL: #4590
Fixes: #4571
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
  • Loading branch information
Sequoia authored and Myles Borins committed Jan 19, 2016
1 parent bd31740 commit 5b45a46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/http.markdown
Expand Up @@ -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`.
Expand Down

0 comments on commit 5b45a46

Please sign in to comment.