net.Socket.writable,net.Socket.readable性质不属于官方Node.js的API的一部分 [英] net.Socket.writable, net.Socket.readable properties aren't part of the official node.js API

查看:134
本文介绍了net.Socket.writable,net.Socket.readable性质不属于官方Node.js的API的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道为什么是net.Socket.writable和net.Socket.readable性能不是正式的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?

推荐答案

他们 - 但不是你正在寻找。 是的streams ,该 net.Socket 从继承。请参见 stream.readable 并的 stream.writable ,分别为。

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.

这篇关于net.Socket.writable,net.Socket.readable性质不属于官方Node.js的API的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆