add a small example

This commit is contained in:
lumi 2017-02-19 00:01:51 +01:00
parent bf7112ff39
commit 12cbd17da7

11
examples/client.rs Normal file
View file

@ -0,0 +1,11 @@
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();
}