mirror of https://github.com/smol-rs/smol
Update websocket dependencies
This commit is contained in:
parent
cd9d44df94
commit
c3fca0e900
|
@ -33,6 +33,6 @@ num_cpus = "1.12.0"
|
|||
pin-utils = "0.1.0-alpha.4"
|
||||
tokio = { version = "0.2", default-features = false }
|
||||
|
||||
async-tungstenite = "0.4.0"
|
||||
url = "2.1.1"
|
||||
async-tls = "0.6.0"
|
||||
async-tungstenite = {git="https://github.com/sdroege/async-tungstenite"}
|
||||
async-tls = {git="https://github.com/async-rs/async-tls"}
|
||||
url = "*"
|
||||
|
|
|
@ -59,7 +59,7 @@ pub async fn websocket(
|
|||
smol::Async::<std::net::TcpStream>::connect(format!("{}:{}", host, port)).await?;
|
||||
|
||||
let tls_stream = async_tls::TlsConnector::default()
|
||||
.connect(host.to_ascii_lowercase(), tcp_stream)?
|
||||
.connect(host.to_ascii_lowercase(), tcp_stream)
|
||||
.await?;
|
||||
|
||||
let ws_request =
|
||||
|
|
Loading…
Reference in New Issue