Hathora Rust Client SDK

Usage

```rs let appid = "...".tostring(); let client = HathoraClient::new(appid, None); let token = client .loginanonymous() .expect("Logging in should succeed."); let roomId = client .create(&token, vec![]) .expect("Creating a room should succeed"); let mut connection = client .connect(&token, &roomId) .expect("Creating a websocket should succeed.");

match connection .readmessage() .expect("Reading from websocket should succeed") { Message::Binary(b) => println!("Got message: {:?}", b), _ => {} } connection .writemessage(Message::Binary(b"{ message: \"Hello world\" }".to_vec())) .expect("Writing to socket should suceed"); ```