diff --git a/Cargo.toml b/Cargo.toml index 1be48bef0..53a0c8879 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ tokio-stream = "0.1.1" tokio-util = { version = "0.7", features = ["io"] } tracing = { version = "0.1.21", default-features = false, features = ["log", "std"] } tower-service = "0.3" -tokio-tungstenite = { version = "0.15", optional = true } +tokio-tungstenite = { version = "0.17", optional = true } percent-encoding = "2.1" pin-project = "1.0" tokio-rustls = { version = "0.23", optional = true } diff --git a/src/filters/ws.rs b/src/filters/ws.rs index dd3b9d47e..1e953c7a3 100644 --- a/src/filters/ws.rs +++ b/src/filters/ws.rs @@ -373,6 +373,7 @@ impl Message { protocol::Message::Ping(ref v) => v, protocol::Message::Pong(ref v) => v, protocol::Message::Close(_) => &[], + protocol::Message::Frame(ref frame) => frame.payload(), } }