From 5170823572927e8b71726cbbcb46a2e9576c4533 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 5 Jun 2009 15:18:05 +0200 Subject: [PATCH] Documentation for connection.connect() --- website/api.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/api.html b/website/api.html index 95e98f27f80..eb4941bc7c0 100644 --- a/website/api.html +++ b/website/api.html @@ -421,6 +421,13 @@ server.listen(7000, "localhost");
new node.tcp.Connection()
Creates a new connection object.
+
connection.connect(port, host="127.0.0.1")
+
+ Opens a connection to the specified port and + host. If the second parameter is omitted, localhost is + assumed. +
+
connection.readyState
Either "closed", "open",