socket.setEncoding([encoding])
新增于: v0.1.90
-
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.