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?
I wonder why are net.Socket.writable and net.Socket.readable properties not part of the official node.js
Share
They are — but not where you are looking.
readableandwritableare properties of streams, whichnet.Socketinherits from. See stream.readable and stream.writable, respectively.