socket[Symbol.asyncDispose]()


稳定性: 1 - 实验性

调用 socket.close() 并返回一个在套接字关闭时完成的 promise。

🌐 Calls socket.close() and returns a promise that fulfills when the socket has closed.