|
|
|
@ -83,7 +83,8 @@ fn connect<R: Runtime>(
|
|
|
|
|
config: Option<ConnectionConfig>,
|
|
|
|
|
) -> Result<Id> {
|
|
|
|
|
let id = rand::random();
|
|
|
|
|
let (ws_stream, _) = tauri::async_runtime::block_on(connect_async_with_config(url, config.map(Into::into)))?;
|
|
|
|
|
let (ws_stream, _) =
|
|
|
|
|
tauri::async_runtime::block_on(connect_async_with_config(url, config.map(Into::into)))?;
|
|
|
|
|
|
|
|
|
|
tauri::async_runtime::spawn(async move {
|
|
|
|
|
let (write, read) = ws_stream.split();
|
|
|
|
|