Closed ssrlive closed 2 years ago
use the exiist raw stream socket make it act as WebSocket client. likes
let url = "ws://123.45.67.89:1234/my_path"; let stream = tokio::net::TcpStream::connect(("123.45.67.89", 1234)).await?; let (ws_stream, _) = connect_to_raw_socket_async(url, None, stream).await?; ...
use the exiist raw stream socket make it act as WebSocket client. likes