endpoint.close()


优雅地关闭端点。当所有当前打开的会话关闭后,端点将自动关闭并销毁。一旦调用,新的会话将被拒绝。

🌐 Gracefully close the endpoint. The endpoint will close and destroy itself when all currently open sessions close. Once called, new sessions will be rejected.

返回一个在端点被销毁时实现的 promise。

🌐 Returns a promise that is fulfilled when the endpoint is destroyed.