@@ -589,7 +589,7 @@ Possible signatures: |
589 | 589 | * [`socket.connect(options[, connectListener])`][`socket.connect(options)`] |
590 | 590 | * [`socket.connect(path[, connectListener])`][`socket.connect(path)`] |
591 | 591 | for [IPC][] connections. |
592 | | -* [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`] |
| 592 | +* [`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`] |
593 | 593 | for TCP connections. |
594 | 594 | * Returns: {net.Socket} The socket itself. |
595 | 595 |
|
@@ -1098,21 +1098,21 @@ added: v0.1.90 |
1098 | 1098 | --> |
1099 | 1099 |
|
1100 | 1100 | * `port` {number} Port the socket should connect to. Will be passed to |
1101 | | - [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`]. |
| 1101 | + [`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`]. |
1102 | 1102 | * `host` {string} Host the socket should connect to. Will be passed to |
1103 | | - [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`]. |
| 1103 | + [`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`]. |
1104 | 1104 | **Default:** `'localhost'`. |
1105 | 1105 | * `connectListener` {Function} Common parameter of the |
1106 | 1106 | [`net.createConnection()`][] functions, an "once" listener for the |
1107 | 1107 | `'connect'` event on the initiating socket. Will be passed to |
1108 | | - [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`]. |
| 1108 | + [`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`]. |
1109 | 1109 | * Returns: {net.Socket} The newly created socket used to start the connection. |
1110 | 1110 |
|
1111 | 1111 | Initiates a TCP connection. |
1112 | 1112 |
|
1113 | 1113 | This function creates a new [`net.Socket`][] with all options set to default, |
1114 | 1114 | immediately initiates connection with |
1115 | | -[`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`], |
| 1115 | +[`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`], |
1116 | 1116 | then returns the `net.Socket` that starts the connection. |
1117 | 1117 |
|
1118 | 1118 | ## `net.createServer([options][, connectionListener])` |
@@ -1259,7 +1259,7 @@ Returns `true` if input is a version 6 IP address, otherwise returns `false`. |
1259 | 1259 | [`socket.connect()`]: #net_socket_connect |
1260 | 1260 | [`socket.connect(options)`]: #net_socket_connect_options_connectlistener |
1261 | 1261 | [`socket.connect(path)`]: #net_socket_connect_path_connectlistener |
1262 | | -[`socket.connect(port, host)`]: #net_socket_connect_port_host_connectlistener |
| 1262 | +[`socket.connect(port)`]: #net_socket_connect_port_host_connectlistener |
1263 | 1263 | [`socket.connecting`]: #net_socket_connecting |
1264 | 1264 | [`socket.destroy()`]: #net_socket_destroy_exception |
1265 | 1265 | [`socket.end()`]: #net_socket_end_data_encoding_callback |
|