close

fun close()

Closes the HTTP client backing the fund calls and releases its resources.

Note: Typically not needed in application code. FriendBot maintains a persistent HTTP client for better performance. Only call this if you need to explicitly release resources (e.g., when shutting down your application).

Closing the shared client is permanent for the lifetime of the process: FriendBot is an object with no way to rebuild it, so subsequent fund calls fail. When httpClientOverride is set the override is closed instead, leaving the shared client untouched and still usable.