Skip to main content
Cleans up connections and aborts any active streams for the SparkWallet.

Method Signature

async cleanupConnections(): Promise<void>

Returns

This method returns nothing and resolves to void.

Example

await wallet.cleanupConnections();
console.log("Connections cleaned up");