Skip to main content

tunnel

Function tunnel 

Source
pub async fn tunnel(
    client: WebSocket,
    peer: WebSocketStream<MaybeTlsStream<TcpStream>>,
)
Expand description

Bidirectionally relay frames between the client websocket and the peer websocket until either side closes.