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",