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:
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])
['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