pub fn client<Stream, Req>(
    request: Req,
    stream: Stream,
) -> StdResult<(WebSocket<Stream>, Response), HandshakeError<ClientHandshake<Stream>>>
where
    Stream: Read + Write,
    Req: IntoClientRequest,
{
    client_with_config(request, stream, None)
}
/// Do the client handshake over the given stream.
///
/// Use this function if you need a nonblocking handshake support or if you
/// want to use a custom stream like `mio::net::TcpStream` or `openssl::ssl::SslStream`.
/// Any stream supporting `Read + Write` will do.
Do the client handshake over the given stream.
Do the client handshake over the given stream .
pub fn client<Stream, Req>(
    request: Req,
    stream: Stream,
) -> StdResult<(WebSocket<Stream>, Response), HandshakeError<ClientHandshake<Stream>>>
where
    Stream: Read + Write,
    Req: IntoClientRequest,
{
    client_with_config(request, stream, None)
}
pub fn client < Stream , Req > ( request : Req , stream : Stream , ) -> StdResult < ( WebSocket < Stream > , Response ) , HandshakeError < ClientHandshake < Stream > > > where Stream : Read + Write , Req : IntoClientRequest , { client_with_config ( request , stream , None ) }
Do the client handshake over the given stream.
Do the client handshake over the given stream .
request
Req
stream
Stream
request
Req
stream
Stream