diff --git a/docs/crate.md b/docs/crate.md index 74e46b2..3efe795 100644 --- a/docs/crate.md +++ b/docs/crate.md @@ -34,7 +34,12 @@ use bRAC::proto::*; use std::error::Error; fn main() -> Result<(), Box> { - let mut conn = connect("rac://meex.lol", None)?; // read docs/url.md + let mut conn = connect("wracs://meex.lol", None)?; + // read docs/url.md + + // this keep-alive way with only one connection + // works only for WRAC, for a regular RAC, + // you have to connect to the server on each request send_message(&mut conn, " hi RAC-loving kikes!")?; register_user(&mut conn, "dude", "password")?; @@ -57,4 +62,4 @@ fn main() -> Result<(), Box> { ## See more -- [rac-rs - A Rust client library for RAC protocol. (with async support)](https://github.com/kostya-zero/rac-rs) \ No newline at end of file +- [rac-rs - A Rust client library for RAC protocol. (with async support)](https://github.com/kostya-zero/rac-rs)