简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM