mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-29 12:06:01 +02:00
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"websocket": patch
|
||||
---
|
||||
|
||||
Fix argument name mismatch that caused issues when options where provided.
|
||||
@@ -96,10 +96,10 @@ async fn connect<R: Runtime>(
|
||||
window: Window<R>,
|
||||
url: String,
|
||||
on_message: Channel,
|
||||
config: Option<ConnectionConfig>,
|
||||
options: Option<ConnectionConfig>,
|
||||
) -> Result<Id> {
|
||||
let id = rand::random();
|
||||
let (ws_stream, _) = connect_async_with_config(url, config.map(Into::into), false).await?;
|
||||
let (ws_stream, _) = connect_async_with_config(url, options.map(Into::into), false).await?;
|
||||
|
||||
tauri::async_runtime::spawn(async move {
|
||||
let (write, read) = ws_stream.split();
|
||||
|
||||
Reference in New Issue
Block a user