File tree Expand file tree Collapse file tree 5 files changed +504
-190
lines changed Expand file tree Collapse file tree 5 files changed +504
-190
lines changed Original file line number Diff line number Diff line change 43
43
* Expose ` EventBuilder ` ([ Yuki Kishimoto] )
44
44
* Expose add relay method for ` Client ` ([ Yuki Kishimoto] )
45
45
* Expose remove relay methods for ` Client ` ([ Yuki Kishimoto] )
46
+ * Expose connect and disconnect methods for ` Client ` ([ Yuki Kishimoto] )
46
47
* Expose ` Client::send_event_builder ` ([ Yuki Kishimoto] )
47
48
* Expose ` Client::automatic_authentication ` ([ Yuki Kishimoto] )
48
49
* Expose ` Client::reset ` ([ Yuki Kishimoto] )
Original file line number Diff line number Diff line change @@ -58,6 +58,15 @@ abstract class Client implements RustOpaqueInterface {
58
58
/// Connect to all added relays
59
59
Future <void > connect ();
60
60
61
+ /// Connect to a previously added relay
62
+ Future <void > connectRelay ({required String url});
63
+
64
+ /// Disconnect from all relays
65
+ Future <void > disconnect ();
66
+
67
+ /// Disconnect relay
68
+ Future <void > disconnectRelay ({required String url});
69
+
61
70
/// Disconnect and force remove all relays
62
71
Future <void > forceRemoveAllRelays ();
63
72
You can’t perform that action at this time.
0 commit comments