File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -103,16 +103,18 @@ IPv4 address (`INADDR_ANY`).
103103
104104To 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
112113Start 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()
You can’t perform that action at this time.
0 commit comments