From 432aced635eb5db32e4217863222bf3a94e136f6 Mon Sep 17 00:00:00 2001 From: Sequoia McDowell Date: Fri, 8 Jan 2016 13:27:44 -0500 Subject: [PATCH] doc: document server.listen return value The server method returns `self` in order to allow chaining. closes #4571 --- doc/api/http.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 34e3417b518d63..d1391f077e0491 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -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`.