Add a note in the API docs about binding to ports and using strings.
authorTim Caswell <tim@creationix.com>
Mon, 19 Apr 2010 13:18:16 +0000 (08:18 -0500)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 19 Apr 2010 22:52:51 +0000 (15:52 -0700)
doc/api.markdown

index 2f1abed..274d8f6 100644 (file)
@@ -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.