summaryrefslogtreecommitdiffstats
path: root/src/client/encrypted.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/client/encrypted.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/encrypted.rs b/src/client/encrypted.rs
index 86aba13..03ae295 100644
--- a/src/client/encrypted.rs
+++ b/src/client/encrypted.rs
@@ -85,6 +85,13 @@ impl<'j> JabberClient<'j> {
}
}
+ pub async fn watch(&mut self) -> Result<()> {
+ loop {
+ let element = Element::read(&mut self.reader).await?;
+ println!("{:#?}", element);
+ }
+ }
+
pub async fn sasl(&mut self, mechanisms: &Vec<String>) -> Result<()> {
println!("{:?}", mechanisms);
let sasl = SASLClient::new(self.jabber.auth.clone());