xmpp-rs-mirror/examples/client.rs

12 lines
226 B
Rust
Raw Normal View History

2017-02-18 23:01:51 +00:00
extern crate xmpp;
use xmpp::jid::Jid;
use xmpp::client::ClientBuilder;
use std::env;
fn main() {
let jid: Jid = env::var("JID").unwrap().parse().unwrap();
let client = ClientBuilder::new(jid).connect().unwrap();
}