karyon_net::ws

Function dial

Source
pub async fn dial<C>(
    endpoint: &Endpoint,
    config: ClientWsConfig,
    codec: C,
) -> Result<WsConn<C>>
where C: WebSocketCodec + Clone,
Expand description

Connects to the given WS address and port.