fix(js): default url

This commit is contained in:
əlemi 2024-08-27 23:09:36 +02:00
parent a961159d74
commit cfab8ee148
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -4,7 +4,7 @@ use crate::{Client, Workspace};
#[napi]
/// connect to codemp servers and return a client session
pub async fn connect(addr: Option<String>, username: String, password: String) -> napi::Result<crate::Client>{
let client = crate::Client::connect(addr.as_deref().unwrap_or("http://codemp.alemi.dev:50053"), username, password)
let client = crate::Client::connect(addr.as_deref().unwrap_or("http://codemp.dev:50053"), username, password)
.await?;
Ok(client)