Skip to content

Commit bad1312

Browse files
committed
Expose Client::reset
1 parent 9d98ec3 commit bad1312

File tree

5 files changed

+279
-175
lines changed

5 files changed

+279
-175
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* Expose `EventBuilder` ([Yuki Kishimoto])
4444
* Expose `Client::send_event_builder` ([Yuki Kishimoto])
4545
* Expose `Client::automatic_authentication` ([Yuki Kishimoto])
46+
* Expose `Client::reset` ([Yuki Kishimoto])
4647
* Expose signer methods for `Client` ([Yuki Kishimoto])
4748
* Add `SendEventOutput` ([Yuki Kishimoto])
4849

lib/src/rust/api/client.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ abstract class Client implements RustOpaqueInterface {
4343

4444
factory Client() => NostrSdk.instance.api.crateApiClientClientNew();
4545

46+
/// Reset client
47+
///
48+
/// This method reset the client to simplify the switch to another account.
49+
Future<void> reset();
50+
4651
/// Send event
4752
///
4853
/// Send `Event` to all relays with `WRITE` flag.

0 commit comments

Comments
 (0)