• encoding {string}
    • 返回: {net.Socket} Socket 本身。

    设置作为[可读流][Readable Stream]的编码。在 [readable.setEncoding()] 查看更多详情。