Add a note in the API docs about binding to ports and using strings.
This commit is contained in:
parent
60de86351a
commit
61308a5bff
@ -1485,6 +1485,8 @@ address.
|
|||||||
|
|
||||||
To listen to a unix socket, supply a filename instead of port and hostname.
|
To listen to a unix socket, supply a filename instead of port and hostname.
|
||||||
|
|
||||||
|
**If you give a port number as a string, the system will interpret it as a filename in the current directory and create a unix socket.**
|
||||||
|
|
||||||
This function is asynchronous. `listening` will be emitted when the server
|
This function is asynchronous. `listening` will be emitted when the server
|
||||||
is ready to accept connections.
|
is ready to accept connections.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user