server.close([callback])
callback<Function>
阻止服务器建立新的会话和流。
🌐 Stops the server from establishing new sessions and streams.
如果提供了 callback,在所有活动会话关闭之前它不会被调用,尽管服务器已经停止允许新会话。更多详情请参见 net.Server.close()。
🌐 If callback is provided, it is not invoked until all active sessions have been
closed, although the server has already stopped allowing new sessions. See
net.Server.close() for more details.