socket.destroySoon()
在所有数据写入后销毁套接字。如果 'finish' 事件已经触发,套接字会立即被销毁。如果套接字仍然可写,它会隐式调用 socket.end()。
🌐 Destroys the socket after all data is written. If the 'finish' event was
already emitted the socket is destroyed immediately. If the socket is still
writable it implicitly calls socket.end().