Browse files

Add a note in the API docs about binding to ports and using strings.

  • Loading branch information...
1 parent 60de863 commit 61308a5bff0fe184744f5f6e9031991826b74796 @creationix creationix committed with ry Apr 19, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 doc/api.markdown
2 doc/api.markdown
@@ -1485,6 +1485,8 @@ address.
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
is ready to accept connections.

0 comments on commit 61308a5

Please sign in to comment.