diff --git a/Cargo.toml b/Cargo.toml index 2e9a9c2c44b..002725dc75f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ chrono = { version = "0.4.22", default-features = false, features = ["clock", "s flate2 = { version = "1.0.13", optional = true } reqwest = { version = "0.11.7", default-features = false, features = ["multipart", "stream"], optional = true } static_assertions = { version = "1.1", optional = true } -tokio-tungstenite = { version = "0.18", optional = true } +tokio-tungstenite = { version = "0.19", optional = true } typemap_rev = { version = "0.3.0", optional = true } bytes = { version = "1.0", optional = true } percent-encoding = { version = "2.1", optional = true } diff --git a/src/gateway/ws.rs b/src/gateway/ws.rs index 2db3f337718..2f1ecb9c97d 100644 --- a/src/gateway/ws.rs +++ b/src/gateway/ws.rs @@ -108,7 +108,7 @@ impl WsClient { max_send_queue: None, accept_unmasked_frames: false, }; - let (stream, _) = connect_async_with_config(url, Some(config)).await?; + let (stream, _) = connect_async_with_config(url, Some(config), false).await?; Ok(Self(stream)) }