From 71bff7ce316ca66a7829bfa3c95b04eab31d9abb Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 18 Feb 2022 20:10:24 +0000 Subject: [PATCH 1/2] fix(deps): update rust crate tokio-tungstenite to 0.17 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 494a5560..94360c13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,4 @@ rand = "0.8" tauri = "1.0.0-rc.3" futures-util = "0.3" tokio = { version = "1.17", features = ["net", "sync"] } -tokio-tungstenite = { version = "0.16", features = ["native-tls"] } +tokio-tungstenite = { version = "0.17", features = ["native-tls"] } From 476882878c991a5dd6f2e3c2ae360c56bf39f3e6 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Fri, 18 Feb 2022 23:01:14 +0100 Subject: [PATCH 2/2] fix: ignore Message::Frame --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 47277fcd..dccea1ec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -122,6 +122,7 @@ fn connect( }))) .unwrap() } + Ok(Message::Frame(_)) => serde_json::Value::Null, // This value can't be recieved. Err(e) => serde_json::to_value(Error::from(e)).unwrap(), }; let js = format_callback(callback_function, &response)