mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-06-25 03:12:57 +03:00
fix(docs): fix crate.md example
This commit is contained in:
parent
c18e141880
commit
032f8eb900
@ -34,7 +34,12 @@ use bRAC::proto::*;
|
||||
use std::error::Error;
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
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, "<dude> hi RAC-loving kikes!")?;
|
||||
register_user(&mut conn, "dude", "password")?;
|
||||
@ -57,4 +62,4 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
|
||||
## See more
|
||||
|
||||
- [rac-rs - A Rust client library for RAC protocol. (with async support)](https://github.com/kostya-zero/rac-rs)
|
||||
- [rac-rs - A Rust client library for RAC protocol. (with async support)](https://github.com/kostya-zero/rac-rs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user