Skip to content

Commit

Permalink
doc: fix connectListener description in net docs
Browse files Browse the repository at this point in the history
`connectListener` is registered as a listener to the 'connect' event
once. Update the documentation to reflect that behavior.

Fixes: nodejs#901
PR-URL: nodejs#1717
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
Josh Gummersall authored and bnoordhuis committed May 17, 2015
1 parent 6edc900 commit fbaef40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/api/net.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ The options are passed to both the ['net.Socket'](#net_class_net_socket)
constructor and the ['socket.connect'](#net_socket_connect_options_connectlistener)
method.

The `connectListener` parameter will be added as an listener for the
['connect'][] event.
The `connectListener` parameter will be added as a listener for the
['connect'][] event once.

Here is an example of a client of the previously described echo server:

Expand Down Expand Up @@ -100,8 +100,8 @@ supplied `port` and `host`.

If `host` is omitted, `'localhost'` will be assumed.

The `connectListener` parameter will be added as an listener for the
['connect'][] event.
The `connectListener` parameter will be added as a listener for the
['connect'][] event once.

## net.connect(path[, connectListener])
## net.createConnection(path[, connectListener])
Expand All @@ -110,8 +110,8 @@ A factory function, which returns a new unix
['net.Socket'](#net_class_net_socket) and automatically connects to the
supplied `path`.

The `connectListener` parameter will be added as an listener for the
['connect'][] event.
The `connectListener` parameter will be added as a listener for the
['connect'][] event once.

## Class: net.Server

Expand Down

0 comments on commit fbaef40

Please sign in to comment.