Function ratchet_rs::subscribe[][src]

pub async fn subscribe<S, R>(
    config: WebSocketConfig,
    stream: S,
    request: R
) -> Result<UpgradedClient<S, NoExt>, Error> where
    S: WebSocketStream,
    R: TryIntoRequest
Expand description

Execute a WebSocket client handshake on stream, opting for no compression on messages and no subprotocol.