doc: add link & simplify data event (net.Socket)
This adds a more specific link from the docs for net.Socket
's data
event to socket.setEncoding()
, which in turn links to the readable stream docs for more info. It removes the link directly to the readable stream docs.
It also fixes a misnamed link (stream.setEncoding
when should be readable.setEncoding
)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines