connect_with

Function connect_with 

Source
pub async fn connect_with<T, C>(
    config: SessionConfig,
    transport_config: TransportConfig,
    transport: T,
    codec: C,
) -> Result<SessionHandle, SessionError>
where T: Transport, C: Codec,
Expand description

Connect with a custom transport and codec.

This is the generic entry point that accepts any Transport + Codec implementation. The default connect delegates here with TungsteniteTransport and JsonCodec.