pub async fn connect_with<T, C>(
config: SessionConfig,
transport_config: TransportConfig,
transport: T,
codec: C,
) -> Result<SessionHandle, SessionError>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.