File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 31
31
32
32
* Bump upstream deps to ce2ba11a
33
33
34
+ ## Added
35
+
36
+ * Expose ` Relay::ban `
37
+
34
38
## 0.40.2
35
39
36
40
### Fixed
Original file line number Diff line number Diff line change @@ -185,11 +185,18 @@ impl JsRelay {
185
185
self . inner . try_connect ( * * timeout) . await . map_err ( into_err)
186
186
}
187
187
188
- /// Disconnect from relay and set status to ' Terminated'
188
+ /// Disconnect from relay and set status to ` Terminated`
189
189
pub fn disconnect ( & self ) {
190
190
self . inner . disconnect ( )
191
191
}
192
192
193
+ /// Ban relay and set status to `Banned`.
194
+ ///
195
+ /// A banned relay can't reconnect again.
196
+ pub fn ban ( & self ) {
197
+ self . inner . ban ( )
198
+ }
199
+
193
200
/// Send msg to relay
194
201
#[ wasm_bindgen( js_name = sendMsg) ]
195
202
pub fn send_msg ( & self , msg : & JsClientMessage ) -> Result < ( ) > {
You can’t perform that action at this time.
0 commit comments