Open Praying opened 2 years ago
tokio-tungstenite is also ok
do you have any experience
I have not, but I can guess it should look like this:
let stream = TcpStream::connect("my-proxy-server.com:54321").await?;
async_socks5::connect(&mut stream, ("your-ws-server.com", 80), None).await?;
let (ws_stream, _) = tokio_tungstenite::client_async("ws://your-ws-server.com:80", stream).await?;
do you have any experience
I have not, but I can guess it should look like this:
let stream = TcpStream::connect("my-proxy-server.com:54321").await?; async_socks5::connect(&mut stream, ("your-ws-server.com", 80), None).await?; let (ws_stream, _) = tokio_tungstenite::client_async("ws://your-ws-server.com:80", stream).await?;
I have try it, didn't work
I need a proxy on websocket with tungstenite, and I don't know how to implement it with async-socks5, do you have any experience or example?