Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions livekit-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ optional = true

[dependencies.async-tungstenite]
optional = true
version = "0.25.0"
features = ["async-std-runtime", "async-native-tls"]
version = "0.28"
features = ["async-std-runtime", "async-tls"]

[dependencies.futures-util]
version = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions livekit-api/src/signal_client/signal_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use async_tungstenite::{
async_std::connect_async,
async_std::ClientStream as MaybeTlsStream,
tungstenite::error::ProtocolError,
tungstenite::{Error as WsError, Message},
tungstenite::{client::IntoClientRequest, Error as WsError, Message},
WebSocketStream,
};

Expand Down Expand Up @@ -96,7 +96,7 @@ impl SignalStream {
log::info!("connecting to {}", url);
}

let (ws_stream, _) = connect_async(url).await?;
let (ws_stream, _) = connect_async(url.to_string().into_client_request()?).await?;
let (ws_writer, ws_reader) = ws_stream.split();

let (emitter, events) = mpsc::unbounded_channel();
Expand Down