@@ -419,8 +419,7 @@ added: v0.1.90
419
419
* {Buffer}
420
420
421
421
Emitted when data is received. The argument ` data ` will be a ` Buffer ` or
422
- ` String ` . Encoding of data is set by ` socket.setEncoding() ` .
423
- (See the [ Readable Stream] [ ] section for more information.)
422
+ ` String ` . Encoding of data is set by [ ` socket.setEncoding() ` ] [ ] .
424
423
425
424
Note that the ** data will be lost** if there is no listener when a ` Socket `
426
425
emits a ` 'data' ` event.
@@ -746,7 +745,7 @@ added: v0.1.90
746
745
* Returns: {net.Socket} The socket itself.
747
746
748
747
Set the encoding for the socket as a [ Readable Stream] [ ] . See
749
- [ ` stream .setEncoding()` ] [ ] for more information.
748
+ [ ` readable .setEncoding()` ] [ ] for more information.
750
749
751
750
### socket.setKeepAlive([ enable] [ , initialDelay ] )
752
751
<!-- YAML
@@ -1117,9 +1116,10 @@ Returns true if input is a version 6 IP address, otherwise returns false.
1117
1116
[ `socket.end()` ] : #net_socket_end_data_encoding
1118
1117
[ `socket.pause()` ] : #net_socket_pause
1119
1118
[ `socket.resume()` ] : #net_socket_resume
1119
+ [ `socket.setEncoding()` ] : #net_socket_setencoding_encoding
1120
1120
[ `socket.setTimeout()` ] : #net_socket_settimeout_timeout_callback
1121
1121
[ `socket.setTimeout(timeout)` ] : #net_socket_settimeout_timeout_callback
1122
- [ `stream .setEncoding()` ] : stream.html#stream_readable_setencoding_encoding
1122
+ [ `readable .setEncoding()` ] : stream.html#stream_readable_setencoding_encoding
1123
1123
[ IPC ] : #net_ipc_support
1124
1124
[ Identifying paths for IPC connections ] : #net_identifying_paths_for_ipc_connections
1125
1125
[ Readable Stream ] : stream.html#stream_class_stream_readable
0 commit comments