GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: remove optional parameter from markdown anchor link · nodejs/node@f41660a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • net.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+6-6Lines changed: 6 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ Possible signatures:
589589
* [`socket.connect(options[, connectListener])`][`socket.connect(options)`]
590590
* [`socket.connect(path[, connectListener])`][`socket.connect(path)`]
591591
for [IPC][] connections.
592-
* [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`]
592+
* [`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`]
593593
for TCP connections.
594594
* Returns: {net.Socket} The socket itself.
595595

@@ -1098,21 +1098,21 @@ added: v0.1.90
10981098
-->
10991099

11001100
* `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)`].
11021102
* `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)`].
11041104
**Default:** `'localhost'`.
11051105
* `connectListener` {Function} Common parameter of the
11061106
[`net.createConnection()`][] functions, an "once" listener for the
11071107
`'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)`].
11091109
* Returns: {net.Socket} The newly created socket used to start the connection.
11101110

11111111
Initiates a TCP connection.
11121112

11131113
This function creates a new [`net.Socket`][] with all options set to default,
11141114
immediately initiates connection with
1115-
[`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`],
1115+
[`socket.connect(port[, host][, connectListener])`][`socket.connect(port)`],
11161116
then returns the `net.Socket` that starts the connection.
11171117

11181118
## `net.createServer([options][, connectionListener])`
@@ -1259,7 +1259,7 @@ Returns `true` if input is a version 6 IP address, otherwise returns `false`.
12591259
[`socket.connect()`]: #net_socket_connect
12601260
[`socket.connect(options)`]: #net_socket_connect_options_connectlistener
12611261
[`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
12631263
[`socket.connecting`]: #net_socket_connecting
12641264
[`socket.destroy()`]: #net_socket_destroy_exception
12651265
[`socket.end()`]: #net_socket_end_data_encoding_callback

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.