mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 23:34:49 +01:00
fix(js): default url
This commit is contained in:
parent
a961159d74
commit
cfab8ee148
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ use crate::{Client, Workspace};
|
||||||
#[napi]
|
#[napi]
|
||||||
/// connect to codemp servers and return a client session
|
/// connect to codemp servers and return a client session
|
||||||
pub async fn connect(addr: Option<String>, username: String, password: String) -> napi::Result<crate::Client>{
|
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?;
|
.await?;
|
||||||
|
|
||||||
Ok(client)
|
Ok(client)
|
||||||
|
|
Loading…
Reference in a new issue