Skip to content

Commit aa12f68

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

File tree

5 files changed

+511
-356
lines changed

5 files changed

+511
-356
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
* Expose `NostrDatabase` and `Events` structs ([Yuki Kishimoto])
4747
* Expose `ClientBuilder::database` ([Yuki Kishimoto])
4848
* Expose `Client::send_event_to` ([Yuki Kishimoto])
49+
* Expose `Client::fetch_events_from` ([Yuki Kishimoto])
4950

5051
### Fixed
5152

lib/src/rust/api/client.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ abstract class Client implements RustOpaqueInterface {
7878
Future<Events> fetchEvents(
7979
{required Filter filter, required Duration timeout});
8080

81+
/// Fetch events from specific relays.
82+
Future<Events> fetchEventsFrom(
83+
{required List<String> urls,
84+
required Filter filter,
85+
required Duration timeout});
86+
8187
/// Disconnect and force remove all relays
8288
Future<void> forceRemoveAllRelays();
8389

0 commit comments

Comments
 (0)