Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
tls doc: update docs to reflect API change
Browse files Browse the repository at this point in the history
Refs #1983.
  • Loading branch information
mmalecki authored and koichik committed Jan 8, 2012
1 parent 39484f4 commit 0321adb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doc/api/tls.markdown
Expand Up @@ -102,10 +102,16 @@ You can test this server by connecting to it with `openssl s_client`:
openssl s_client -connect 127.0.0.1:8000


#### tls.connect(options, [secureConnectListener])
#### tls.connect(port, [host], [options], [secureConnectListener])

Creates a new client connection to the given `port` and `host`. (If `host`
defaults to `localhost`.) `options` should be an object which specifies
Creates a new client connection to the given `port` and `host` (old API) or
`options.port` and `options.host`. (If `host` is omitted, it defaults to
`localhost`.) `options` should be an object which specifies:

- `host`: Host the client should connect to

- `port`: Port the client should connect to

- `key`: A string or `Buffer` containing the private key of the client in
PEM format.
Expand Down

0 comments on commit 0321adb

Please sign in to comment.