Reputation: 1544
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?
Upvotes: 5
Views: 1911
Reputation: 39251
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.
Upvotes: 10