mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
Merge remote-tracking branch 'origin/v1' into v2
This commit is contained in:
@@ -16,7 +16,7 @@ thiserror = { workspace = true }
|
||||
rand = "0.8"
|
||||
futures-util = "0.3"
|
||||
tokio = { version = "1", features = [ "net", "sync" ] }
|
||||
tokio-tungstenite = { version = "0.18" }
|
||||
tokio-tungstenite = { version = "0.19" }
|
||||
|
||||
[features]
|
||||
native-tls = [ "tokio-tungstenite/native-tls" ]
|
||||
|
||||
@@ -13,7 +13,7 @@ tauri = { version = "2.0.0-alpha.8", features = [] }
|
||||
tokio = { version = "1", features = ["net"] }
|
||||
futures-util = "0.3"
|
||||
tauri-plugin-websocket = { path = "../../../" }
|
||||
tokio-tungstenite = "0.18"
|
||||
tokio-tungstenite = "0.19"
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2.0.0-alpha.4", features = [] }
|
||||
|
||||
@@ -90,7 +90,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();
|
||||
|
||||
Reference in New Issue
Block a user