> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spark.money/llms.txt
> Use this file to discover all available pages before exploring further.

# cleanupConnections

> Close active connections and abort streams.

Cleans up connections and aborts any active streams for the `SparkWallet`.

## Method Signature

```typescript theme={null}
async cleanupConnections(): Promise<void>
```

## Returns

This method returns nothing and resolves to `void`.

## Example

```typescript theme={null}
await wallet.cleanupConnections();
console.log("Connections cleaned up");
```
