Skip to content

Commit c744e92

Browse files
committed
doc: correct http.Server.listen()
Fixes nodejs#2325.
1 parent 4b123f9 commit c744e92

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/api/http.markdown

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,18 @@ IPv4 address (`INADDR_ANY`).
103103

104104
To listen to a unix socket, supply a filename instead of port and hostname.
105105

106-
This function is asynchronous. The last parameter `callback` will be called
107-
when the server has been bound to the port.
106+
This function is asynchronous. The last parameter `callback` will be added as
107+
a listener for the ['listening'](net.html#event_listening_) event.
108+
See also [net.Server.listen()](net.html#server.listen).
108109

109110

110111
### server.listen(path, [callback])
111112

112113
Start a UNIX socket server listening for connections on the given `path`.
113114

114-
This function is asynchronous. The last parameter `callback` will be called
115-
when the server has been bound.
115+
This function is asynchronous. The last parameter `callback` will be added as
116+
a listener for the ['listening'](net.html#event_listening_) event.
117+
See also [net.Server.listen()](net.html#server.listen).
116118

117119

118120
### server.close()

0 commit comments

Comments
 (0)