Skip to content

Commit 47b2c4d

Browse files
committed
Expose Client::send_event_to
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 46485d3 commit 47b2c4d

File tree

5 files changed

+468
-334
lines changed

5 files changed

+468
-334
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
* Expose subscribe `Client` methods ([Yuki Kishimoto])
4646
* Expose `NostrDatabase` and `Events` structs ([Yuki Kishimoto])
4747
* Expose `ClientBuilder::database` ([Yuki Kishimoto])
48+
* Expose `Client::send_event_to` ([Yuki Kishimoto])
4849

4950
### Fixed
5051

lib/src/rust/api/client.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ abstract class Client implements RustOpaqueInterface {
127127
/// Return an error if the [`NostrSigner`] is not set.
128128
Future<SendEventOutput> sendEventBuilder({required EventBuilder builder});
129129

130+
/// Send event to specific relays.
131+
Future<SendEventOutput> sendEventTo(
132+
{required List<String> urls, required Event event});
133+
130134
/// Set nostr signer
131135
Future<void> setSigner({required NostrSigner signer});
132136

0 commit comments

Comments
 (0)