diff --git a/Cargo.toml b/Cargo.toml index 12ca30a..0ace83a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ stream_lib = { optional = true, version = "0.4.1" } symphonia = { default_features = false, optional = true, version = "0.5.2" } symphonia-core = { optional = true, version = "0.5.2" } tokio = { default-features = false, optional = true, version = "1.0" } -tokio-tungstenite = { optional = true, version = "0.21" } +tokio-tungstenite = { optional = true, version = "0.23" } tokio-util = { features = ["io"], optional = true, version = "0.7" } tracing = { version = "0.1", features = ["log"] } tracing-futures = "0.2" diff --git a/src/ws.rs b/src/ws.rs index 939ca45..7137212 100644 --- a/src/ws.rs +++ b/src/ws.rs @@ -22,8 +22,8 @@ pub struct WsStream(WebSocketStream>); impl WsStream { #[instrument] pub(crate) async fn connect(url: Url) -> Result { - let (stream, _) = tokio_tungstenite::connect_async_with_config::( - url, + let (stream, _) = tokio_tungstenite::connect_async_with_config( + url.to_string(), Some(Config { max_message_size: None, max_frame_size: None,