Function ngrok::session::default_connect

source ·
pub async fn default_connect(
    host: String,
    port: u16,
    tls_config: Arc<ClientConfig>,
    _: Option<AcceptError>
) -> Result<Box<dyn IoStream>, ConnectError>
Expand description

The default ngrok connector.

Establishes a TCP connection to addr, and then performs a TLS handshake using the tls_config.

Discards any errors during reconnect, allowing attempts to recur indefinitely.