Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

net.Socket.writable, net.Socket.readable properties aren't part of the official node.js API

I wonder why are net.Socket.writable and net.Socket.readable properties not part of the official node.js API? Does it mean that it's better not to use these properties since it's an internal stuff which can change in the future?

like image 532
Andrei Sedoi Avatar asked Jan 18 '23 08:01

Andrei Sedoi


1 Answers

They are -- but not where you are looking. readable and writable are properties of streams, which net.Socket inherits from. See stream.readable and stream.writable, respectively.

like image 97
Linus Thiel Avatar answered Jan 30 '23 18:01

Linus Thiel