socket.end([data[, encoding]][, callback])
data<string> | <Buffer> | <Uint8Array>encoding<string> 仅在数据为string时使用。默认值:'utf8'。callback<Function> 套接字完成时的可选回调。- 返回:<net.Socket> 套接字本身。
半关闭套接字。也就是说,它发送一个 FIN 包。服务器仍可能发送一些数据。
【Half-closes the socket. i.e., it sends a FIN packet. It is possible the server will still send some data.】
有关详细信息,请参见writable.end()。
【See writable.end() for further details.】