add client_bind
This commit is contained in:
parent
973a5ca659
commit
014633d119
4 changed files with 148 additions and 0 deletions
|
|
@ -35,6 +35,9 @@ fn main() {
|
|||
let username = jid.node.as_ref().unwrap().to_owned();
|
||||
stream.auth(username, password).expect("auth")
|
||||
}).and_then(|stream| {
|
||||
stream.bind()
|
||||
}).and_then(|stream| {
|
||||
println!("Bound to {}", stream.jid);
|
||||
stream.for_each(|event| {
|
||||
match event {
|
||||
Packet::Stanza(el) => println!("<< {}", el),
|
||||
|
|
|
|||
Loading…
Reference in a new issue