mirror of
https://github.com/GiriNeko/hbb_common.git
synced 2025-12-16 13:27:23 +00:00
[add log] add log and add ws scheme
This commit is contained in:
parent
6798bf3780
commit
b1dd3bb9c8
1 changed files with 3 additions and 1 deletions
|
|
@ -69,7 +69,9 @@ impl WsFramedStream {
|
|||
send_timeout: ms_timeout,
|
||||
})
|
||||
} else {
|
||||
let (stream, _) = connect_async(url_str).await?;
|
||||
log::info!("{:?}", url_str);
|
||||
let ws_url = format!("ws://{}", url_str);
|
||||
let (stream, _) = connect_async(ws_url).await?;
|
||||
|
||||
let addr = match stream.get_ref() {
|
||||
MaybeTlsStream::Plain(tcp) => tcp.peer_addr()?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue