diff --git a/tokio-xmpp/src/client/simple_client.rs b/tokio-xmpp/src/client/simple_client.rs index 4b69045b..df87ef0e 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;