From 032f8eb900acbe05ef655fb071a1f6d3a2270f1b Mon Sep 17 00:00:00 2001 From: MeexReay Date: Tue, 24 Jun 2025 16:14:52 +0300 Subject: [PATCH] fix(docs): fix crate.md example --- docs/crate.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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)