close
Complete the client’s lifecycle. The client holds no pooled connection of its
own, so there is nothing to tear down and calling it more than once is safe. It
exists so code can treat AIChatClient like any other disposable resource.
The client also implements Symbol.asyncDispose, so await using client = new AIChatClient(...) calls close() for you when the scope exits.
Parameters
None.
Returns
Promise<void>
Example
Outside an await using block, close it yourself: