diff --git a/xmpp/src/lib.rs b/xmpp/src/lib.rs index 0f5b87a8..7f0ee642 100644 --- a/xmpp/src/lib.rs +++ b/xmpp/src/lib.rs @@ -198,6 +198,10 @@ pub struct Agent { } impl Agent { + pub async fn disconnect(&mut self) -> Result<(), Error> { + self.client.send_end().await + } + pub async fn join_room( &mut self, room: BareJid,