pub fn pump<S: Conn + ?Sized>(
ws: &mut WebSocket<Box<S>>,
input: impl Read + Send + 'static,
output: impl Write,
) -> Result<()>Expand description
Shuttle bytes between input/output (ssh’s end of a ProxyCommand)
and the websocket until either side ends. Ok when the session ended
normally; the server’s reason otherwise.