socket.setEncoding([encoding])
-
encoding
<string> -
返回:<net.Socket> 套接字自身
¥Returns: <net.Socket> The socket itself.
将套接字的编码设置为 可读流。有关详细信息,请参阅 readable.setEncoding()
。
¥Set the encoding for the socket as a Readable Stream. See
readable.setEncoding()
for more information.