leastrio / shaco Goto Github PK
View Code? Open in Web Editor NEWA League of Legends local client wrapper for rust
Home Page: https://crates.io/crates/shaco/
License: MIT License
A League of Legends local client wrapper for rust
Home Page: https://crates.io/crates/shaco/
License: MIT License
As the title says, something like
let client = rest::RESTClient::new()?;
client.delete("/lol-perks/v1/pages/id").await?;
expects the page to be delete via the page ID, which requires the use of a String such as
let rune_page_endpoint: String = format!("/lol-perks/v1/pages/{}", id);
But this causes an error when passing it as the paramater for client.delete
Getting this error when trying to post to /lol-matchmaking/v1/ready-check/accept
Tried making my own rest client and from what I can gather, it seems to stem from trying to deserialize an empty response on the post function:
pub async fn post<T: Serialize>(
&self,
endpoint: String,
body: T,
) -> Result<serde_json::Value, reqwest::Error> {
let req: serde_json::Value = self
.reqwest_client
.post(format!("https://127.0.0.1:{}{}", self.port, endpoint))
.json(&body)
.send()
.await?
.json() // <- EOF error occurs here, so message gets posted but errors on response
.await?;
Ok(req)
}
This will be a tracker and place to communicate for the Websocket implementation.
I dont like the websocket system too much, and id like to redesign it. Im not sure how i plan to redesign it but ill look at other libraries.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.