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