server.listen(handle[, callback])
-
handle
<Object> -
callback
<Function>
The handle
object can be set to either a server or socket (anything with an underlying _handle
member), or a {fd: <n>}
object.
This will cause the server to accept connections on the specified handle, but it is presumed that the file descriptor or handle has already been bound to a port or domain socket.
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
.
Please login to continue.