@@ -90,7 +90,7 @@ Common options are:
90
90
a FIN packet when the other end of the socket sends a FIN packet.
91
91
Defaults to ` false ` . See [ 'end'] [ ] event for more information.
92
92
93
- The ` connectListener ` parameter will be added as an listener for the
93
+ The ` connectListener ` parameter will be added as a listener for the
94
94
[ 'connect'] [ ] event.
95
95
96
96
Here is an example of a client of echo server as described previously:
@@ -119,7 +119,7 @@ changed to
119
119
120
120
Creates a TCP connection to ` port ` on ` host ` . If ` host ` is omitted,
121
121
` 'localhost' ` will be assumed.
122
- The ` connectListener ` parameter will be added as an listener for the
122
+ The ` connectListener ` parameter will be added as a listener for the
123
123
[ 'connect'] [ ] event.
124
124
125
125
Is a factory method which returns a new [ 'net.Socket'] ( #net_class_net_socket ) .
@@ -128,7 +128,7 @@ Is a factory method which returns a new ['net.Socket'](#net_class_net_socket).
128
128
## net.createConnection(path[ , connectListener] )
129
129
130
130
Creates unix socket connection to ` path ` .
131
- The ` connectListener ` parameter will be added as an listener for the
131
+ The ` connectListener ` parameter will be added as a listener for the
132
132
[ 'connect'] [ ] event.
133
133
134
134
A factory method which returns a new [ 'net.Socket'] ( #net_class_net_socket ) .
@@ -150,7 +150,7 @@ parameter is 511 (not 512).
150
150
151
151
This function is asynchronous. When the server has been bound,
152
152
[ 'listening'] [ ] event will be emitted. The last parameter ` callback `
153
- will be added as an listener for the [ 'listening'] [ ] event.
153
+ will be added as a listener for the [ 'listening'] [ ] event.
154
154
155
155
One issue some users run into is getting ` EADDRINUSE ` errors. This means that
156
156
another server is already running on the requested port. One way of handling this
@@ -178,7 +178,7 @@ Start a local socket server listening for connections on the given `path`.
178
178
179
179
This function is asynchronous. When the server has been bound,
180
180
[ 'listening'] [ ] event will be emitted. The last parameter ` callback `
181
- will be added as an listener for the [ 'listening'] [ ] event.
181
+ will be added as a listener for the [ 'listening'] [ ] event.
182
182
183
183
On UNIX, the local domain is usually known as the UNIX domain. The path is a
184
184
filesystem path name. It is subject to the same naming conventions and
@@ -212,7 +212,7 @@ Listening on a file descriptor is not supported on Windows.
212
212
213
213
This function is asynchronous. When the server has been bound,
214
214
[ 'listening'] [ ] event will be emitted.
215
- the last parameter ` callback ` will be added as an listener for the
215
+ the last parameter ` callback ` will be added as a listener for the
216
216
[ 'listening'] [ ] event.
217
217
218
218
### server.listen(options[ , callback] )
@@ -374,7 +374,7 @@ This function is asynchronous. When the ['connect'][] event is emitted the
374
374
socket is established. If there is a problem connecting, the ` 'connect' ` event
375
375
will not be emitted, the ` 'error' ` event will be emitted with the exception.
376
376
377
- The ` connectListener ` parameter will be added as an listener for the
377
+ The ` connectListener ` parameter will be added as a listener for the
378
378
[ 'connect'] [ ] event.
379
379
380
380
0 commit comments