Andrei Sedoi
Andrei Sedoi

Reputation: 1544

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?

Upvotes: 5

Views: 1911

Answers (1)

Linus Thiel
Linus Thiel

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

Related Questions