diff --git a/tokio-xmpp/src/client/simple_client.rs b/tokio-xmpp/src/client/simple_client.rs index 4b69045b3479c12fb6b1176b3d31d48649a2b6c2..df87ef0e5965b077a09f6e86b3e914ed1018ff0d 100644 --- a/tokio-xmpp/src/client/simple_client.rs +++ b/tokio-xmpp/src/client/simple_client.rs @@ -44,6 +44,11 @@ impl Client { Ok(Client { stream }) } + /// Get direct access to inner XMPP Stream + pub fn into_inner(self) -> XMPPStream { + self.stream + } + async fn connect(jid: Jid, password: String) -> Result { let username = jid.clone().node().unwrap(); let password = password;