diff --git a/rawclient/src/lib.rs b/rawclient/src/lib.rs index 068240c..326a251 100644 --- a/rawclient/src/lib.rs +++ b/rawclient/src/lib.rs @@ -39,6 +39,12 @@ pub fn new() -> Client { } } +pub fn with_host(host: &str) -> Client { + Client { + client: jsonrpc2_client::new(&host), + } +} + impl Client { pub async fn send_request( &self,